Skip to content

Commit 696cd7c

Browse files
committed
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!)
2 parents 2af9aab + 618d226 commit 696cd7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ println!("{}", x);
122122
```
123123

124124
This will print `6`. We make `y` a mutable reference to `x`, then add one to
125-
the thing `y` points at. You’ll notice that `x` had to be marked `mut` as well,
126-
if it wasn’t, we couldn’t take a mutable borrow to an immutable value.
125+
the thing `y` points at. You’ll notice that `x` had to be marked `mut` as well.
126+
If it wasn’t, we couldn’t take a mutable borrow to an immutable value.
127127

128128
You'll also notice we added an asterisk (`*`) in front of `y`, making it `*y`,
129129
this is because `y` is an `&mut` reference. You'll also need to use them for

0 commit comments

Comments
 (0)