From de36f5cfb0f877a754ff6a77fb9581c4206e705b Mon Sep 17 00:00:00 2001 From: katopz Date: Tue, 11 Oct 2022 09:44:22 +0700 Subject: [PATCH] fix: unnecessary space --- en/src/pattern-match/match-iflet.md | 2 +- solutions/basic-types/numbers.md | 10 +++++----- solutions/collections/Vector.md | 2 +- solutions/ownership/ownership.md | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/en/src/pattern-match/match-iflet.md b/en/src/pattern-match/match-iflet.md index ea68dfd..89405de 100644 --- a/en/src/pattern-match/match-iflet.md +++ b/en/src/pattern-match/match-iflet.md @@ -204,7 +204,7 @@ fn main() { _ => () } } - ``` +``` > You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it \ No newline at end of file diff --git a/solutions/basic-types/numbers.md b/solutions/basic-types/numbers.md index 25b3e5f..f816417 100644 --- a/solutions/basic-types/numbers.md +++ b/solutions/basic-types/numbers.md @@ -50,20 +50,20 @@ fn main() { let v2 = i8::checked_add(119, 8).unwrap(); println!("{},{}",v1,v2); } - ``` +``` 6. - ```rust +```rust fn main() { let v = 1_024 + 0xff + 0o77 + 0b1111_1111; assert!(v == 1597); } - ``` +``` 7. - ```rust +```rust fn main() { let x = 1_000.000_1; // f64 let y: f32 = 0.12; // f32 @@ -76,7 +76,7 @@ fn main() { fn type_of(_: &T) -> String { format!("{}", std::any::type_name::()) } - ``` +``` 8. diff --git a/solutions/collections/Vector.md b/solutions/collections/Vector.md index e2acb24..0442812 100644 --- a/solutions/collections/Vector.md +++ b/solutions/collections/Vector.md @@ -106,7 +106,7 @@ fn main() { println!("Success!") } - ``` +``` 4. diff --git a/solutions/ownership/ownership.md b/solutions/ownership/ownership.md index da93530..3c3f06b 100644 --- a/solutions/ownership/ownership.md +++ b/solutions/ownership/ownership.md @@ -105,7 +105,7 @@ fn print_str(s: String) { fn print_str(s: &String) { println!("{}",s) } - ``` +``` 5.