From c9820adbfaf28265cc7ef4a4674087a7f1d50cf4 Mon Sep 17 00:00:00 2001 From: Aizon Date: Thu, 12 Dec 2024 17:45:20 +0100 Subject: [PATCH] Ch. 4: Rephrase/clarify paragraph on reference scope (#3688) Co-authored-by: Chris Krycho --- src/ch04-02-references-and-borrowing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch04-02-references-and-borrowing.md b/src/ch04-02-references-and-borrowing.md index 22ceb2bdb1..4cc98fb18f 100644 --- a/src/ch04-02-references-and-borrowing.md +++ b/src/ch04-02-references-and-borrowing.md @@ -173,8 +173,8 @@ reading of the data. Note that a reference’s scope starts from where it is introduced and continues through the last time that reference is used. For instance, this code will -compile because the last usage of the immutable references, the `println!`, -occurs before the mutable reference is introduced: +compile because the last usage of the immutable references is in the `println!`, +before the mutable reference is introduced: ```rust,edition2021 {{#rustdoc_include ../listings/ch04-understanding-ownership/no-listing-13-reference-scope-ends/src/main.rs:here}}