Skip to content

Commit 3ddfc6a

Browse files
author
Ruby
committed
---
yaml --- r: 224865 b: refs/heads/tmp c: d3e089f h: refs/heads/master i: 224863: 8fb2d30 v: v3
1 parent 098deb4 commit 3ddfc6a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: 83dee3dfbb452a7558193f3ce171b3c60bf4a499
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: 855f1ff3215e76d438783d8bdf743d6cb641ff89
28+
refs/heads/tmp: d3e089f08bd55fc5e663400f513f77e567636628
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: e58601ab085591c71a27ae82137fc313222c2270
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ This will print `6`. We make `y` a mutable reference to `x`, then add one to
125125
the thing `y` points at. You’ll notice that `x` had to be marked `mut` as well,
126126
if it wasn’t, we couldn’t take a mutable borrow to an immutable value.
127127

128-
You'll also notice we added an asterisk in front of `y`, making it `*y`,
129-
this is because y is an `&mut` reference. You'll also need to use them for
130-
accessing and modifying `&` references as well.
128+
You'll also notice we added an asterisk (`*`) in front of `y`, making it `*y`,
129+
this is because `y` is an `&mut` reference. You'll also need to use them for
130+
accessing the contents of a reference as well.
131131

132132
Otherwise, `&mut` references are just like references. There _is_ a large
133133
difference between the two, and how they interact, though. You can tell

0 commit comments

Comments
 (0)