diff --git a/en/src/basic-types/numbers.md b/en/src/basic-types/numbers.md index 72d0a28..32a1c95 100644 --- a/en/src/basic-types/numbers.md +++ b/en/src/basic-types/numbers.md @@ -24,7 +24,7 @@ fn main() { 2. 🌟 ```rust,editable -// Fill the blank +// Fill the blank fn main() { let v: u16 = 38_u8 as __; diff --git a/en/src/comments-docs.md b/en/src/comments-docs.md index 3c0894d..c4c408e 100644 --- a/en/src/comments-docs.md +++ b/en/src/comments-docs.md @@ -240,7 +240,7 @@ Besides jump into the standard library, you can also jump to another module in t // in lib.rs mod a { - /// Add four to the given value and return a [`Option`] type + /// Add four to the given value and return a [`Option`] type /// [`crate::MySpecialFormatter`] pub fn add_four(x: i32) -> Option { Some(x + 4) diff --git a/solutions/functional-programing/closure.md b/solutions/functional-programing/closure.md index 50ba556..4a8fea2 100644 --- a/solutions/functional-programing/closure.md +++ b/solutions/functional-programing/closure.md @@ -46,7 +46,7 @@ fn main() { // A non-copy type. let movable = Box::new(3); - // A copy type would copy into the closure leaving the original untouched. + // A copy type would copy into the closure leaving the original untouched. // A non-copy must move and so `movable` immediately moves into // the closure. let consume = || { @@ -55,7 +55,7 @@ fn main() { }; consume(); - // consume(); + // consume(); } fn take(_v: T) { @@ -68,7 +68,7 @@ fn main() { // A non-copy type. let movable = Box::new(3); - // A copy type would copy into the closure leaving the original untouched. + // A copy type would copy into the closure leaving the original untouched. // A non-copy must move and so `movable` immediately moves into // the closure. let consume = || { diff --git a/zh-CN/src/basic-types/char-bool-unit.md b/zh-CN/src/basic-types/char-bool-unit.md index 4bfdcca..08273c6 100644 --- a/zh-CN/src/basic-types/char-bool-unit.md +++ b/zh-CN/src/basic-types/char-bool-unit.md @@ -3,7 +3,7 @@ ### 字符 1. 🌟 ```rust,editable -// 修改2处 `assert_eq!` 让代码工作 +// 修改2处 `assert_eq!` 让代码工作 use std::mem::size_of_val; fn main() { @@ -19,7 +19,7 @@ fn main() { 2. 🌟 ```rust,editable -// 修改一行让代码正常打印 +// 修改一行让代码正常打印 fn main() { let c1 = "中"; print_char(c1); diff --git a/zh-CN/src/basic-types/numbers.md b/zh-CN/src/basic-types/numbers.md index a949f05..b46b7e4 100644 --- a/zh-CN/src/basic-types/numbers.md +++ b/zh-CN/src/basic-types/numbers.md @@ -34,7 +34,7 @@ fn main() { ```rust,editable -// 修改 `assert_eq!` 让代码工作 +// 修改 `assert_eq!` 让代码工作 fn main() { let x = 5; assert_eq!("u32".to_string(), type_of(&x)); diff --git a/zh-CN/src/comments-docs.md b/zh-CN/src/comments-docs.md index 546a270..850a5ed 100644 --- a/zh-CN/src/comments-docs.md +++ b/zh-CN/src/comments-docs.md @@ -205,7 +205,7 @@ pub fn add_three(x: i32) -> Option { // in lib.rs mod a { - /// Add four to the given value and return a [`Option`] type + /// Add four to the given value and return a [`Option`] type /// [`crate::MySpecialFormatter`] pub fn add_four(x: i32) -> Option { Some(x + 4)