From 80127d81fa1373371866d1c56cb74d7c76c92b20 Mon Sep 17 00:00:00 2001 From: yang <27681135@qq.com> Date: Fri, 22 Apr 2022 16:21:39 +0800 Subject: [PATCH] add comments in char-bool-unit.md --- zh-CN/src/basic-types/char-bool-unit.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zh-CN/src/basic-types/char-bool-unit.md b/zh-CN/src/basic-types/char-bool-unit.md index a859d26..9ec1152 100644 --- a/zh-CN/src/basic-types/char-bool-unit.md +++ b/zh-CN/src/basic-types/char-bool-unit.md @@ -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 路径下) \ No newline at end of file +> 你可以在[这里](https://github.com/sunface/rust-by-practice)找到答案(在 solutions 路径下)