fix: clippy error message not inline with the intent.

This commit is contained in:
bagus.cahyono 2025-01-21 11:30:46 +07:00
parent fbfd4f25e7
commit 6a2638ff6e
No known key found for this signature in database
GPG key ID: B0917F3D7AF91F17

View file

@ -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;