mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 04:29:41 +00:00
format code in md
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
1.
|
||||
|
||||
```rust
|
||||
use core::panic;
|
||||
|
||||
@ -20,6 +21,7 @@ fn main() {
|
||||
```
|
||||
|
||||
2.
|
||||
|
||||
```rust
|
||||
// MAKE the code work by fixing all panics
|
||||
fn main() {
|
||||
|
@ -1,4 +1,5 @@
|
||||
1.
|
||||
|
||||
```rust
|
||||
use std::num::ParseIntError;
|
||||
|
||||
@ -20,6 +21,7 @@ fn main() {
|
||||
```
|
||||
|
||||
2.
|
||||
|
||||
```rust
|
||||
use std::num::ParseIntError;
|
||||
|
||||
@ -38,6 +40,7 @@ fn main() {
|
||||
```
|
||||
|
||||
3.
|
||||
|
||||
```rust
|
||||
use std::fs::File;
|
||||
use std::io::{self, Read};
|
||||
@ -71,6 +74,7 @@ fn main() {
|
||||
```
|
||||
|
||||
4.
|
||||
|
||||
```rust
|
||||
use std::num::ParseIntError;
|
||||
|
||||
@ -100,6 +104,7 @@ fn main() {
|
||||
```
|
||||
|
||||
5.
|
||||
|
||||
```rust
|
||||
use std::num::ParseIntError;
|
||||
|
||||
@ -149,6 +154,7 @@ fn main() {
|
||||
```
|
||||
|
||||
6.
|
||||
|
||||
```rust
|
||||
use std::num::ParseIntError;
|
||||
|
||||
|
Reference in New Issue
Block a user