"also ... as well" is redundant
Also "to access" is cleaner than "for accessing"
This commit is contained in:
parent
4a327e0e14
commit
9dd5540540
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue