add comments in char-bool-unit.md

This commit is contained in:
yang 2022-04-22 16:21:39 +08:00 committed by GitHub
parent b5d490bbb4
commit 80127d81fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,7 @@
### 字符
1. 🌟
```rust, editable
// 修改2处 `assert_eq!` 让代码工作
use std::mem::size_of_val;
fn main() {
@ -18,7 +19,7 @@ fn main() {
2. 🌟
```rust, editable
// 修改一行让代码正常打印
fn main() {
let c1 = "中";
print_char(c1);
@ -33,7 +34,7 @@ fn print_char(c : char) {
3. 🌟
```rust, editable
// make println! work
// 使成功打印
fn main() {
let _f: bool = false;
@ -94,4 +95,4 @@ fn main() {
}
```
> 你可以在[这里](https://github.com/sunface/rust-by-practice)找到答案(在 solutions 路径下)
> 你可以在[这里](https://github.com/sunface/rust-by-practice)找到答案(在 solutions 路径下)