mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
Fixed typos in char-bool.md
This commit is contained in:
@ -75,7 +75,7 @@ use std::mem::size_of_val;
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let unit: () = ();
|
let unit: () = ();
|
||||||
// unit type does't occupy any memeory space
|
// unit type doesn't occupy any memory space
|
||||||
assert!(size_of_val(&unit) == 0);
|
assert!(size_of_val(&unit) == 0);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user