Merge pull request #443 from maorit/format_code_collections_vector

format code: format code in `solutions/collections/Vector.md`
This commit is contained in:
Sunface
2023-08-11 10:50:02 +08:00
committed by GitHub

View File

@ -129,12 +129,11 @@ fn main() {
println!("Success!") println!("Success!")
} }
```
```rust,editable
//Another solution
fn main() { 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 { for i in 0..5 {
println!("{:?}", v[i]) println!("{:?}", v[i])
} }
@ -147,7 +146,6 @@ fn main() {
println!("Success!") println!("Success!")
} }
``` ```
5. 5.