We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b93ec30 commit 173c445Copy full SHA for 173c445
1 file changed
src/ch04-03-slices.md
@@ -284,9 +284,9 @@ error[E0502]: cannot borrow `s` as mutable because it is also borrowed as immuta
284
285
Recall from the borrowing rules that if we have an immutable reference to
286
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!
+truncate the `String`, it needs to get a mutable reference, which the compiler
+disallows, which fails. Not only has Rust made our API easier to use, but it
+has also eliminated an entire class of errors at compile time!
290
291
#### String Literals Are Slices
292
0 commit comments