fix: unnecessary space

This commit is contained in:
katopz 2022-10-11 09:47:49 +07:00
parent de36f5cfb0
commit 81ea842fe7
No known key found for this signature in database
GPG Key ID: C17323088013E8B8
6 changed files with 9 additions and 9 deletions

View File

@ -24,7 +24,7 @@ fn main() {
2. 🌟
```rust,editable
// Fill the blank
// Fill the blank
fn main() {
let v: u16 = 38_u8 as __;

View File

@ -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<i32> {
Some(x + 4)

View File

@ -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<T>(_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 = || {

View File

@ -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);

View File

@ -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));

View File

@ -205,7 +205,7 @@ pub fn add_three(x: i32) -> Option<i32> {
// 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<i32> {
Some(x + 4)