book icon indicating copy to clipboard operation
book copied to clipboard

Chapter 3 , claryifying that a mutable variable can be shadowed.

Open low-perry opened this issue 1 year ago • 0 comments
trafficstars

On chapter 3 , shadowing section the text goes to great lengths to explain the difference between mutability and shadowing, somewhat implying that you can have either/or (not stated anywhere). I think it would be a good idea to add a note clarifying that you can also shadow a mutable variable and maybe encourage the reader to try it for themselves.

NOTE: It is possible to shadow a mutable variable.

low-perry avatar Jul 03 '24 11:07 low-perry