Skip to content

Commit 6b8d6ae

Browse files
committed
typos
1 parent d5b61ef commit 6b8d6ae

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/scope/borrow/alias.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fn main() {
2828
borrowed_point.x, another_borrow.y, point.z);
2929
3030
// The immutable references are no longer used for the rest of the code so
31-
// it is possible to reborrow with a mutbale reference.
31+
// it is possible to reborrow with a mutable reference.
3232
let mutable_borrow = &mut point;
3333
3434
// Change data via mutable reference
@@ -50,9 +50,7 @@ fn main() {
5050
mutable_borrow.x, mutable_borrow.y, mutable_borrow.z);
5151
5252
// The mutable reference is no longer used for the rest of the code so it
53-
// is possible to reborrow.
54-
55-
// Immutable references to `point` are allowed again
53+
// is possible to reborrow
5654
let new_borrowed_point = &point;
5755
println!("Point now has coordinates: ({}, {}, {})",
5856
new_borrowed_point.x, new_borrowed_point.y, new_borrowed_point.z);

0 commit comments

Comments
 (0)