Skip to content

Commit

Permalink
Merge pull request #1482 from corningsun/patch-1
Browse files Browse the repository at this point in the history
Update char-bool.md
  • Loading branch information
sunface authored Jan 8, 2025
2 parents 0a0cc4e + 16b50cd commit 29e9f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/basic/base-type/char-bool.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn main() {
```rust
fn main() {
let x = '中';
println!("字符'中'占用了{}字节的内存大小",std::mem::size_of_val(&x));
println!("字符'中'占用了{}字节的内存大小", size_of_val(&x));
}
```

Expand Down

0 comments on commit 29e9f3c

Please sign in to comment.