Rollup merge of #34621 - KaivoAnastetiks:fix/#33924, r=steveklabnik

Clarifies the meaning of the external mutability.
This commit is contained in:
Steve Klabnik 2016-07-06 19:13:07 -04:00 committed by GitHub
commit 04130595cc

View File

@ -62,8 +62,8 @@ Note that here, the `x` is mutable, but not the `y`.
# Interior vs. Exterior Mutability
However, when we say something is immutable in Rust, that doesnt mean that
its not able to be changed: we mean something has exterior mutability. Consider,
for example, [`Arc<T>`][arc]:
its not able to be changed: we are referring to its exterior mutability that
in this case is immutable. Consider, for example, [`Arc<T>`][arc]:
```rust
use std::sync::Arc;