Skip to content

Commit df93e18

Browse files
Clarifies the meaning of the external mutability.
1 parent 8a50e29 commit df93e18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/book/mutability.md

+2-2
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 it's ‘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)