mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-23 12:52:20 +08:00
Fix typo
This commit is contained in:
parent
53144808a3
commit
6204fdc727
@ -141,7 +141,7 @@ error[E0499]: cannot borrow `s` as mutable more than once at a time
|
|||||||
| -- first borrow later used here
|
| -- first borrow later used here
|
||||||
```
|
```
|
||||||
|
|
||||||
这个限制允许可变性,不过是以一种受限制的方式允许。新 Rustacean 们经常与此作斗争,因为大部分语言中变量任何时候都是可变的。
|
这个限制允许可变性,不过是以一种受限制的方式允许。新 Rustacean 们经常难以适应这一点,因为大部分语言中变量任何时候都是可变的。
|
||||||
|
|
||||||
这个限制的好处是 Rust 可以在编译时就避免数据竞争。**数据竞争**(*data race*)类似于竞态条件,它可由这三个行为造成:
|
这个限制的好处是 Rust 可以在编译时就避免数据竞争。**数据竞争**(*data race*)类似于竞态条件,它可由这三个行为造成:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user