1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2026-05-20 10:00:01 +02:00
Files
rustlings/solutions/05_vecs
Remo Senekowitsch 97a723508c 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.
2026-05-14 16:19:53 +02:00
..