From df93e1841864140ecb528c93948a8c164ae3f3c1 Mon Sep 17 00:00:00 2001 From: Kaivo Anastetiks Date: Sat, 2 Jul 2016 20:39:21 -0400 Subject: [PATCH 1/2] Clarifies the meaning of the external mutability. --- src/doc/book/mutability.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/book/mutability.md b/src/doc/book/mutability.md index e462715114624..35a286a0d311a 100644 --- a/src/doc/book/mutability.md +++ b/src/doc/book/mutability.md @@ -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 doesn’t mean that -it’s not able to be changed: we mean something has ‘exterior mutability’. Consider, -for example, [`Arc`][arc]: +it’s not able to be changed: we are referring to it's ‘exterior mutability’ that +in this case is immutable. Consider, for example, [`Arc`][arc]: ```rust use std::sync::Arc; From 6a85183e6f7c29777e1058a88f328e05137abb4d Mon Sep 17 00:00:00 2001 From: Kaivo Anastetiks Date: Tue, 5 Jul 2016 07:26:38 -0400 Subject: [PATCH 2/2] Replace it's by its. --- src/doc/book/mutability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/book/mutability.md b/src/doc/book/mutability.md index 35a286a0d311a..a0a49d55e1057 100644 --- a/src/doc/book/mutability.md +++ b/src/doc/book/mutability.md @@ -62,7 +62,7 @@ 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 doesn’t mean that -it’s not able to be changed: we are referring to it's ‘exterior mutability’ that +it’s not able to be changed: we are referring to its ‘exterior mutability’ that in this case is immutable. Consider, for example, [`Arc`][arc]: ```rust