mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
fix: unnecessary space
This commit is contained in:
@ -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);
|
||||
|
@ -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));
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user