Skip to content

Commit 0413059

Browse files
authored
Rollup merge of rust-lang#34621 - KaivoAnastetiks:fix/rust-lang#33924, r=steveklabnik
Clarifies the meaning of the external mutability.
2 parents 2acce41 + 6a85183 commit 0413059

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/book/mutability.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ Note that here, the `x` is mutable, but not the `y`.
6262
# Interior vs. Exterior Mutability
6363

6464
However, when we say something is ‘immutable’ in Rust, that doesn’t mean that
65-
it’s not able to be changed: we mean something has ‘exterior mutability’. Consider,
66-
for example, [`Arc<T>`][arc]:
65+
it’s not able to be changed: we are referring to its ‘exterior mutability’ that
66+
in this case is immutable. Consider, for example, [`Arc<T>`][arc]:
6767

6868
```rust
6969
use std::sync::Arc;

0 commit comments

Comments
 (0)