split a run-on sentence

This is two sentences that have been comma spliced, and should
be split with a full stop.  (This error made me stop and re-read,
and I submit this as an actual improvement to readability, not
as a grammar weird-o!)
This commit is contained in:
Ricardo Signes 2015-10-28 19:15:20 -04:00
parent 65623dba0d
commit 618d22609e

View File

@ -122,8 +122,8 @@ println!("{}", x);
```
This will print `6`. We make `y` a mutable reference to `x`, then add one to
the thing `y` points at. Youll notice that `x` had to be marked `mut` as well,
if it wasnt, we couldnt take a mutable borrow to an immutable value.
the thing `y` points at. Youll notice that `x` had to be marked `mut` as well.
If it wasnt, we couldnt 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