Skip to content

Commit 91d7ac8

Browse files
committed
maked comments consistent
1 parent cc7f201 commit 91d7ac8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scope/borrow/alias.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn main() {
1919
println!("Point has coordinates: ({}, {}, {})",
2020
borrowed_point.x, another_borrow.y, point.z);
2121
22-
// Error! Can't borrow point as mutable because it's currently
22+
// Error! Can't borrow `point` as mutable because it's currently
2323
// borrowed as immutable.
2424
//let mutable_borrow = &mut point;
2525
// TODO ^ Try uncommenting this line
@@ -51,9 +51,9 @@ fn main() {
5151
// Mutable reference goes out of scope
5252
}
5353
54-
// Immutable references to point are allowed again
54+
// Immutable references to `point` are allowed again
5555
let borrowed_point = &point;
5656
println!("Point now has coordinates: ({}, {}, {})",
5757
borrowed_point.x, borrowed_point.y, borrowed_point.z);
5858
}
59-
```
59+
```

0 commit comments

Comments
 (0)