rust-practice/examples/variables.txt
2020-07-08 18:32:23 +10:00

5 lines
337 B
Text

- Variables are immutable by default
- Normal variables can have their value reassigned, mutable variables must keep the same type
and immutable variables can have their values reassigned using let again, also allowing you
to change the type (shadowing)
- Constant variables cannot have new variables reassigned to the name they use