You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-12-22 22:51:12 +02:00
323 B
323 B
Solution
{{#include exercise.rs:solution}}
- Note that in
normalizewe were able to do*item /= magto modify each element. This is because we're iterating using a mutable reference to an array, which causes theforloop to give mutable references to each element.