Skip to content

Commit 173c445

Browse files
committed
Fix unclear wording in 4.3
1 parent b93ec30 commit 173c445

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ch04-03-slices.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ error[E0502]: cannot borrow `s` as mutable because it is also borrowed as immuta
284284

285285
Recall from the borrowing rules that if we have an immutable reference to
286286
something, we cannot also take a mutable reference. Because `clear` needs to
287-
truncate the `String`, it tries to take a mutable reference, which fails. Not
288-
only has Rust made our API easier to use, but it has also eliminated an entire
289-
class of errors at compile time!
287+
truncate the `String`, it needs to get a mutable reference, which the compiler
288+
disallows, which fails. Not only has Rust made our API easier to use, but it
289+
has also eliminated an entire class of errors at compile time!
290290

291291
#### String Literals Are Slices
292292

0 commit comments

Comments
 (0)