From 6b8d6aeceac3230899b32f670a6691938bee651a Mon Sep 17 00:00:00 2001 From: Andrew Pritchard Date: Sat, 5 Oct 2019 00:34:54 +1000 Subject: [PATCH] typos --- src/scope/borrow/alias.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/scope/borrow/alias.md b/src/scope/borrow/alias.md index 59255ed700..9cfd5fe5dc 100644 --- a/src/scope/borrow/alias.md +++ b/src/scope/borrow/alias.md @@ -28,7 +28,7 @@ fn main() { borrowed_point.x, another_borrow.y, point.z); // The immutable references are no longer used for the rest of the code so - // it is possible to reborrow with a mutbale reference. + // it is possible to reborrow with a mutable reference. let mutable_borrow = &mut point; // Change data via mutable reference @@ -50,9 +50,7 @@ fn main() { mutable_borrow.x, mutable_borrow.y, mutable_borrow.z); // The mutable reference is no longer used for the rest of the code so it - // is possible to reborrow. - - // Immutable references to `point` are allowed again + // is possible to reborrow let new_borrowed_point = &point; println!("Point now has coordinates: ({}, {}, {})", new_borrowed_point.x, new_borrowed_point.y, new_borrowed_point.z);