format code in md

This commit is contained in:
likzn
2022-05-01 13:08:50 +08:00
parent dad4052485
commit e09080f88a
43 changed files with 405 additions and 124 deletions

View File

@ -1,4 +1,5 @@
1、
```rust
fn main() {
let v: &str = "hello";
@ -26,6 +27,7 @@ fn need_static(r : &'static str) {
```
2、
```rust
#[derive(Debug)]
struct Config {
@ -54,6 +56,7 @@ fn main() {
```
3、
```rust
fn main() {
// Make a `string` literal and print it:
@ -65,6 +68,7 @@ fn main() {
```
5、
```rust
use std::fmt::Debug;