mirror of
https://github.com/Dhghomon/easy_rust
synced 2024-11-17 15:29:51 +00:00
fix typo
This commit is contained in:
parent
773f02d4af
commit
899e742caf
@ -11799,7 +11799,7 @@ This prints `\u{ccad} \u{cd98} \u{c608} \u{cc2c}`.
|
||||
You can get a char from `u8` using the `From` trait, but for a `u32` you use `TryFrom` because it might not work. There are many more numbers in `u32` than characters in Unicode. We can see this with a simple demonstration.
|
||||
|
||||
```rust
|
||||
use std::convert::TryFrom; // You need to brig TryFrom in to use it
|
||||
use std::convert::TryFrom; // You need to bring TryFrom in to use it
|
||||
use rand::prelude::*; // We will use random numbers too
|
||||
|
||||
fn main() {
|
||||
|
Loading…
Reference in New Issue
Block a user