mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-01-27 00:00:03 +03:00
fix: clippy error message not inline with the intent.
This commit is contained in:
parent
fbfd4f25e7
commit
6a2638ff6e
|
@ -17,7 +17,8 @@ fn main() {
|
|||
];
|
||||
println!("My array! Here it is: {my_arr:?}");
|
||||
|
||||
let my_empty_vec = vec![1, 2, 3, 4, 5].resize(0, 5);
|
||||
let mut my_empty_vec = vec![1, 2, 3, 4, 5];
|
||||
my_empty_vec.resize(0, 5);
|
||||
println!("This Vec is empty, see? {my_empty_vec:?}");
|
||||
|
||||
let mut value_a = 45;
|
||||
|
|
Loading…
Reference in a new issue