]> git.lizzy.rs Git - rust.git/commitdiff
fixed the few nits!
authorRuby <hi@ruby.sh>
Thu, 6 Aug 2015 18:55:53 +0000 (19:55 +0100)
committerRuby <hi@ruby.sh>
Thu, 6 Aug 2015 18:55:53 +0000 (19:55 +0100)
src/doc/trpl/references-and-borrowing.md

index 1709ac8f26bbaafc5b971f50f94e676f589684ea..a7a77539f79584a9e71a783b9e40b1fa459e1f5f 100644 (file)
@@ -125,9 +125,9 @@ This will print `6`. We make `y` a mutable reference to `x`, then add one to
 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
-accessing and modifying `&` references as well.
+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
+accessing the contents of a reference as well.
 
 Otherwise, `&mut` references are just like references. There _is_ a large
 difference between the two, and how they interact, though. You can tell