diff --git a/src/control-flow-basics/solution.md b/src/control-flow-basics/solution.md index b4a4c92c..8f1fff06 100644 --- a/src/control-flow-basics/solution.md +++ b/src/control-flow-basics/solution.md @@ -3,3 +3,12 @@ ```rust,editable {{#include exercise.rs:solution}} ``` + +
+ +- Note that the argument `n` is marked as `mut`, allowing you to change the + value of `n` in the function. Like variables, function arguments are immutable + by default and you must add `mut` if you want to modify their value. This does + not affect how the function is called or how the argument is passed in. + +