mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-23 12:42:26 +08:00
Merge pull request #548 from zhannicholas/issue547
纠正 ISSUE#547 描述的翻译错误
This commit is contained in:
commit
6cc7368738
@ -125,7 +125,7 @@ Rust 采取了一个不同的策略:内存在拥有它的变量离开作用域
|
|||||||
|
|
||||||
#### 变量与数据交互的方式(一):移动
|
#### 变量与数据交互的方式(一):移动
|
||||||
|
|
||||||
Rust 中的多个变量可以采用一种独特的方式与同一数据交互。让我们看看示例 4-2 中一个使用整型的例子。
|
在Rust 中,多个变量可以采取不同的方式与同一数据进行交互。让我们看看示例 4-2 中一个使用整型的例子。
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
let x = 5;
|
let x = 5;
|
||||||
|
Loading…
Reference in New Issue
Block a user