Skip to content

Commit

Permalink
format code: format code in solutions/collections/Vector.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhai998 committed Aug 6, 2023
1 parent 88191e1 commit 315dbdd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions solutions/collections/Vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,11 @@ fn main() {
println!("Success!")
}
```

//Another solution
```rust,editable
fn main() {
let mut v = Vec::from([1, 2, 3,4,5]);
let mut v = Vec::from([1, 2, 3, 4, 5]);
for i in 0..5 {
println!("{:?}", v[i])
}
Expand All @@ -147,7 +146,6 @@ fn main() {
println!("Success!")
}
```

5.
Expand Down

0 comments on commit 315dbdd

Please sign in to comment.