fix: unnecessary space

This commit is contained in:
katopz 2022-10-11 09:44:22 +07:00
parent 16e8f45ab8
commit de36f5cfb0
No known key found for this signature in database
GPG Key ID: C17323088013E8B8
4 changed files with 8 additions and 8 deletions

View File

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

View File

@ -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>(_: &T) -> String {
format!("{}", std::any::type_name::<T>())
}
```
```
8.

View File

@ -106,7 +106,7 @@ fn main() {
println!("Success!")
}
```
```
4.

View File

@ -105,7 +105,7 @@ fn print_str(s: String) {
fn print_str(s: &String) {
println!("{}",s)
}
```
```
5.