From c8453222173235045ebfd4af208af497da24e24c Mon Sep 17 00:00:00 2001 From: Adam <134429563+RustoMCSpit@users.noreply.github.com> Date: Thu, 19 Mar 2026 17:30:44 +0000 Subject: [PATCH 1/2] Update ch04-02-references-and-borrowing.md --- src/ch04-02-references-and-borrowing.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ch04-02-references-and-borrowing.md b/src/ch04-02-references-and-borrowing.md index 8c37601d57..1acabf5dd6 100644 --- a/src/ch04-02-references-and-borrowing.md +++ b/src/ch04-02-references-and-borrowing.md @@ -63,8 +63,7 @@ return the values in order to give back ownership, because we never had ownership. We call the action of creating a reference _borrowing_. As in real life, if a -person owns something, you can borrow it from them. When you’re done, you have -to give it back. You don’t own it. +person owns something, you can borrow it from them, but you don't own it. So, what happens if we try to modify something we’re borrowing? Try the code in Listing 4-6. Spoiler alert: It doesn’t work! From 2201e0180d3dd5322dcb2a10e0c5a048ed35cb15 Mon Sep 17 00:00:00 2001 From: Adam <134429563+RustoMCSpit@users.noreply.github.com> Date: Thu, 19 Mar 2026 17:33:29 +0000 Subject: [PATCH 2/2] Update ch04-02-references-and-borrowing.md --- src/ch04-02-references-and-borrowing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch04-02-references-and-borrowing.md b/src/ch04-02-references-and-borrowing.md index 1acabf5dd6..ea1ffc9a8a 100644 --- a/src/ch04-02-references-and-borrowing.md +++ b/src/ch04-02-references-and-borrowing.md @@ -88,7 +88,7 @@ allowed to modify something we have a reference to. ### Mutable References We can fix the code from Listing 4-6 to allow us to modify a borrowed value -with just a few small tweaks that use, instead, a _mutable reference_: +using a _mutable reference_: