From 894381e7f3603bfabd690ba63c9cdd8e65739424 Mon Sep 17 00:00:00 2001 From: TimLai666 <43640816+TimLai666@users.noreply.github.com> Date: Mon, 10 Jun 2024 03:15:49 +0800 Subject: [PATCH] Update README.md --- exercises/01_variables/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/exercises/01_variables/README.md b/exercises/01_variables/README.md index 7964ff29..3f575000 100644 --- a/exercises/01_variables/README.md +++ b/exercises/01_variables/README.md @@ -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)