mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-28 23:09:18 +00:00
Update README.md
This commit is contained in:
parent
787c55bfab
commit
894381e7f3
@ -1,9 +1,9 @@
|
||||
# Variables
|
||||
# 變數
|
||||
|
||||
In Rust, variables are immutable by default.
|
||||
When a variable is immutable, once a value is bound to a name, you can’t change that value.
|
||||
You can make them mutable by adding `mut` in front of the variable name.
|
||||
在 Rust 中,變數預設是不可變的。
|
||||
一旦一個值被綁定到一個名稱,你就不能改變這個值。
|
||||
你可以通過在變數名稱前面添加 `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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user