format code: format code in solutions/collections/Vector.md

This commit is contained in:
chenhai
2023-08-06 20:38:15 +08:00
parent 88191e18b2
commit 315dbdd2b6

View File

@ -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])
}
@ -147,7 +146,6 @@ fn main() {
println!("Success!")
}
```
5.