Skip to content

Commit 9dd5540

Browse files
authored
"also ... as well" is redundant
Also "to access" is cleaner than "for accessing"
1 parent 4a327e0 commit 9dd5540

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/book/references-and-borrowing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ the thing `y` points at. You’ll notice that `x` had to be marked `mut` as well
152152
If it wasn’t, we couldn’t take a mutable borrow to an immutable value.
153153

154154
You'll also notice we added an asterisk (`*`) in front of `y`, making it `*y`,
155-
this is because `y` is a `&mut` reference. You'll also need to use them for
156-
accessing the contents of a reference as well.
155+
this is because `y` is a `&mut` reference. You'll need to use astrisks to
156+
access the contents of a reference as well.
157157

158158
Otherwise, `&mut` references are like references. There _is_ a large
159159
difference between the two, and how they interact, though. You can tell

0 commit comments

Comments
 (0)