Update README.md

This commit is contained in:
TimLai666 2024-06-10 03:15:49 +08:00 committed by GitHub
parent 787c55bfab
commit 894381e7f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,9 +1,9 @@
# Variables # 變數
In Rust, variables are immutable by default. 在 Rust 中,變數預設是不可變的。
When a variable is immutable, once a value is bound to a name, you cant change that value. 一旦一個值被綁定到一個名稱,你就不能改變這個值。
You can make them mutable by adding `mut` in front of the variable name. 你可以通過在變數名稱前面添加 `mut` 使其變為可變的。
## Further information ## 更多資訊
- [Variables and Mutability](https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html) - [變數和可變性](https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html)