SIGN IN SIGN UP
rust-lang / rustlings UNCLAIMED

:crab: Small exercises to get you used to reading and writing Rust code!

0 0 22 Rust

Redesign vec1 to avoid confusing array literal

Learners were sometimes confused by the literal array. Their assumption
was that they are supposed to convert the array to a vector. Duplicating
the literal elements was not an intuitive solution.

This redesign avoids putting an identical array literal near the place
where learners are supposed to use the vec! macro.
R
Remo Senekowitsch committed
97a723508c260ea27aca9be8b3f6db3b3bed80f3
Parent: 03ddf36