1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-05-23 19:00:13 +02:00
comprehensive-rust/src/memory-management
Nicole L 3726918b87
Use Vec::new instead of vec! (#2712)
Using the `vec!` macro to create an empty `Vec` is a bit weird imo,
generally I only see the macro used when you actually want to initialize
the `Vec` with some values (like is done in the examples for this
exercise). Students are more likely to use `Vec::new`, and I think
that's the more idiomatic approach, so I think using `Vec::new` here
would be better.
2025-04-23 11:04:50 +02:00
..
2023-11-29 16:39:24 +01:00
2024-04-25 09:40:36 -04:00
2025-02-20 20:21:32 +00:00
2023-11-29 16:39:24 +01:00
2023-11-29 16:39:24 +01:00