We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b140aea commit af60cc7Copy full SHA for af60cc7
src/ch08-01-vectors.md
@@ -273,8 +273,8 @@ ownership and borrowing rules (covered in Chapter 4) to ensure this reference
273
and any other references to the contents of the vector remain valid. Recall the
274
rule that states you can’t have mutable and immutable references in the same
275
scope. That rule applies in Listing 8-7, where we hold an immutable reference to
276
-the first element in a vector and try to add an element to the end, which won't
277
-work.
+the first element in a vector and try to add an element to the end, which won’t
+work if we also try to refer to that element later in the function:
278
-->
279
280
プログラムに有効な参照がある場合、借用チェッカー(borrow checker)は(第4章で解説しましたが)、
0 commit comments