From 315dbdd2b6ea8ca9d955bcc1410f3aa1c1cc4a27 Mon Sep 17 00:00:00 2001 From: chenhai <13051671277@163.com> Date: Sun, 6 Aug 2023 20:38:15 +0800 Subject: [PATCH] format code: format code in `solutions/collections/Vector.md` --- solutions/collections/Vector.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/solutions/collections/Vector.md b/solutions/collections/Vector.md index 0442812..7581a80 100644 --- a/solutions/collections/Vector.md +++ b/solutions/collections/Vector.md @@ -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.