SIGN IN SIGN UP
rust-lang / rustlings UNCLAIMED

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

0 0 51 Rust

Use slice instead of array in iterator1

This avoids confusion between `.into_iter()` and `.iter()`. On a slice,
both methods do the same (correct) thing. Using `.into_iter()` will
result in a clippy warning about the slice not being consumed.
R
Remo Senekowitsch committed
124708acd93a4a48272e1f7a953fe62c9a2ffa09
Parent: 4f1a440