diff options
| author | bors <bors@rust-lang.org> | 2015-10-29 09:12:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-10-29 09:12:26 +0000 |
| commit | 696cd7cf86c176af4b8ff77b9bd00855a71648d2 (patch) | |
| tree | 6bce6abe941d414b4925354c9886a31f5ed20d3a /src | |
| parent | 2af9aabf3adb49f208bfae0351a143df599fb553 (diff) | |
| parent | 618d22609e8f300467d7473a5f416690f4d035a9 (diff) | |
| download | rust-696cd7cf86c176af4b8ff77b9bd00855a71648d2.tar.gz rust-696cd7cf86c176af4b8ff77b9bd00855a71648d2.zip | |
Auto merge of #29442 - rjbs:docs-comma-splice, r=steveklabnik
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!)
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/trpl/references-and-borrowing.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/trpl/references-and-borrowing.md b/src/doc/trpl/references-and-borrowing.md index 13cfecdf1a7..944417d1096 100644 --- a/src/doc/trpl/references-and-borrowing.md +++ b/src/doc/trpl/references-and-borrowing.md @@ -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. 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. +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 |
