about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorTymoteusz Jankowski <tymoteusz.jankowski@gmail.com>2017-07-24 23:43:34 +0200
committerTymoteusz Jankowski <tymoteusz.jankowski@gmail.com>2017-07-24 23:43:34 +0200
commitd429a4eac81aea6070655cdfb5604187d94355a2 (patch)
treed80a71a85f9d7511585b3fcad0777287289bf978 /src/libcore
parentbeb072a8938db93e694435e852510b79a0909fd3 (diff)
downloadrust-d429a4eac81aea6070655cdfb5604187d94355a2.tar.gz
rust-d429a4eac81aea6070655cdfb5604187d94355a2.zip
s/immutable/my_struct
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/cell.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs
index 1e7c8dfce5b..21b5557db99 100644
--- a/src/libcore/cell.rs
+++ b/src/libcore/cell.rs
@@ -209,11 +209,11 @@ use ptr;
 /// let new_value = 100;
 ///
 /// // ERROR, because my_struct is immutable
-/// // immutable.regular_field = new_value;
+/// // my_struct.regular_field = new_value;
 ///
 /// // WORKS, although `my_struct` is immutable, field `special_field` is mutable because it is Cell
-/// immutable.special_field.set(new_value);
-/// assert_eq!(immutable.special_field.get(), new_value);
+/// my_struct.special_field.set(new_value);
+/// assert_eq!(my_struct.special_field.get(), new_value);
 /// ```
 ///
 /// See the [module-level documentation](index.html) for more.