mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-28 06:49:19 +00:00
Merge 6a2638ff6e34a15c8e10dbc8fff033cfaae67eb0 into f80fbca12e47014a314e5e931678529c28cd9fd8
This commit is contained in:
commit
de22bd1b38
@ -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…
x
Reference in New Issue
Block a user