提交 f8888af4 编写于 作者: D Don Petersen

Add omitted word to mutability docs.

上级 dc630d01
...@@ -78,8 +78,8 @@ When we call `clone()`, the `Arc<T>` needs to update the reference count. Yet ...@@ -78,8 +78,8 @@ When we call `clone()`, the `Arc<T>` needs to update the reference count. Yet
we’ve not used any `mut`s here, `x` is an immutable binding, and we didn’t take we’ve not used any `mut`s here, `x` is an immutable binding, and we didn’t take
`&mut 5` or anything. So what gives? `&mut 5` or anything. So what gives?
To this, we have to go back to the core of Rust’s guiding philosophy, memory To understand this, we have to go back to the core of Rust’s guiding
safety, and the mechanism by which Rust guarantees it, the philosophy, memory safety, and the mechanism by which Rust guarantees it, the
[ownership][ownership] system, and more specifically, [borrowing][borrowing]: [ownership][ownership] system, and more specifically, [borrowing][borrowing]:
> You may have one or the other of these two kinds of borrows, but not both at > You may have one or the other of these two kinds of borrows, but not both at
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册