Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
low-perry opened this issue Jul 3, 2024 · 0 comments
Open

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

low-perry opened this issue Jul 3, 2024 · 0 comments

Comments

@low-perry
Copy link

low-perry commented Jul 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant