diff --git a/src/references/solution.md b/src/references/solution.md index b4a4c92cd998..d0ea0db9fc42 100644 --- a/src/references/solution.md +++ b/src/references/solution.md @@ -3,3 +3,11 @@ ```rust,editable {{#include exercise.rs:solution}} ``` + +
+ +- Note that in `normalize` we were able to do `*item /= mag` to modify each + element. This is because we're iterating using a reference to an array, which + causes the `for` loop to give references to each element. + +