about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-12-30 09:24:24 -0500
committerSteve Klabnik <steve@steveklabnik.com>2015-12-30 09:24:24 -0500
commita73df6bf24bc6f55cf3d2fa60f397bc7a0cb7024 (patch)
tree89c123f42edffd5ef684a25b71d62c1f3666ec96 /src
parent31edbad60a237322c891d59ddeaf90598c947b14 (diff)
parente8e649239c67543f2719d0ee045ed87ad81b7382 (diff)
downloadrust-a73df6bf24bc6f55cf3d2fa60f397bc7a0cb7024.tar.gz
rust-a73df6bf24bc6f55cf3d2fa60f397bc7a0cb7024.zip
Rollup merge of #30620 - salty-horse:an_mut, r=brson
As discussed in issue #30568.
Diffstat (limited to 'src')
-rw-r--r--src/doc/book/choosing-your-guarantees.md4
-rw-r--r--src/doc/book/lifetimes.md2
-rw-r--r--src/doc/book/references-and-borrowing.md2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/book/choosing-your-guarantees.md b/src/doc/book/choosing-your-guarantees.md
index d9e92de8d9a..edf5e2ff738 100644
--- a/src/doc/book/choosing-your-guarantees.md
+++ b/src/doc/book/choosing-your-guarantees.md
@@ -340,11 +340,11 @@ With the former, the `RefCell<T>` is wrapping the `Vec<T>`, so the `Vec<T>` in i
 mutable. At the same time, there can only be one mutable borrow of the whole `Vec` at a given time.
 This means that your code cannot simultaneously work on different elements of the vector from
 different `Rc` handles. However, we are able to push and pop from the `Vec<T>` at will. This is
-similar to an `&mut Vec<T>` with the borrow checking done at runtime.
+similar to a `&mut Vec<T>` with the borrow checking done at runtime.
 
 With the latter, the borrowing is of individual elements, but the overall vector is immutable. Thus,
 we can independently borrow separate elements, but we cannot push or pop from the vector. This is
-similar to an `&mut [T]`[^3], but, again, the borrow checking is at runtime.
+similar to a `&mut [T]`[^3], but, again, the borrow checking is at runtime.
 
 In concurrent programs, we have a similar situation with `Arc<Mutex<T>>`, which provides shared
 mutability and ownership.
diff --git a/src/doc/book/lifetimes.md b/src/doc/book/lifetimes.md
index 68bbd0c9899..2d418786e9a 100644
--- a/src/doc/book/lifetimes.md
+++ b/src/doc/book/lifetimes.md
@@ -103,7 +103,7 @@ Then in our parameter list, we use the lifetimes we’ve named:
 ...(x: &'a i32)
 ```
 
-If we wanted an `&mut` reference, we’d do this:
+If we wanted a `&mut` reference, we’d do this:
 
 ```rust,ignore
 ...(x: &'a mut i32)
diff --git a/src/doc/book/references-and-borrowing.md b/src/doc/book/references-and-borrowing.md
index 546636720ca..a172390a021 100644
--- a/src/doc/book/references-and-borrowing.md
+++ b/src/doc/book/references-and-borrowing.md
@@ -126,7 +126,7 @@ the thing `y` points at. You’ll notice that `x` had to be marked `mut` as well
 If it wasn’t, we couldn’t take a mutable borrow to an immutable value.
 
 You'll also notice we added an asterisk (`*`) in front of `y`, making it `*y`,
-this is because `y` is an `&mut` reference. You'll also need to use them for
+this is because `y` is a `&mut` reference. You'll also need to use them for
 accessing the contents of a reference as well.
 
 Otherwise, `&mut` references are just like references. There _is_ a large