diff options
| author | Jonathan Price <jonmarkprice@users.noreply.github.com> | 2016-06-27 16:52:39 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-27 16:52:39 -0500 |
| commit | 9dd554054034ec65e4a3ba4db127163dedd96743 (patch) | |
| tree | cdf86264246b549538def4b39a2ba46295136efc | |
| parent | 4a327e0e143a75e793033dbab4fb045b3655967e (diff) | |
| download | rust-9dd554054034ec65e4a3ba4db127163dedd96743.tar.gz rust-9dd554054034ec65e4a3ba4db127163dedd96743.zip | |
"also ... as well" is redundant
Also "to access" is cleaner than "for accessing"
| -rw-r--r-- | src/doc/book/references-and-borrowing.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/book/references-and-borrowing.md b/src/doc/book/references-and-borrowing.md index 8aa31c3691f..2b7aa339c0f 100644 --- a/src/doc/book/references-and-borrowing.md +++ b/src/doc/book/references-and-borrowing.md @@ -152,8 +152,8 @@ 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 a `&mut` reference. You'll also need to use them for -accessing the contents of a reference as well. +this is because `y` is a `&mut` reference. You'll need to use astrisks to +access the contents of a reference as well. Otherwise, `&mut` references are like references. There _is_ a large difference between the two, and how they interact, though. You can tell |
