mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 12:39:42 +00:00
format code in md
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
1
|
||||
|
||||
```rust
|
||||
use std::fmt;
|
||||
|
||||
@ -23,6 +24,7 @@ fn main() {
|
||||
```
|
||||
|
||||
2.
|
||||
|
||||
```rust
|
||||
// To use `from_str` method, you needs to introduce this trait into the current scope.
|
||||
use std::str::FromStr;
|
||||
@ -38,6 +40,7 @@ fn main() {
|
||||
```
|
||||
|
||||
3.
|
||||
|
||||
```rust
|
||||
use std::str::FromStr;
|
||||
use std::num::ParseIntError;
|
||||
|
Reference in New Issue
Block a user