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
struct Array<T, const N: usize> {
data : [T; N]
@@ -20,6 +21,7 @@ fn main() {
```
2.
```rust
fn print_array<T: std::fmt::Debug, const N: usize>(arr: [T; N]) {
println!("{:?}", arr);
@@ -33,7 +35,8 @@ fn main() {
}
```
3.
3.
```rust
#![allow(incomplete_features)]
#![feature(generic_const_exprs)]