Skip to content

Commit af60cc7

Browse files
committed
原文の修正漏れを修正
1 parent b140aea commit af60cc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ch08-01-vectors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,8 @@ ownership and borrowing rules (covered in Chapter 4) to ensure this reference
273273
and any other references to the contents of the vector remain valid. Recall the
274274
rule that states you can’t have mutable and immutable references in the same
275275
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.
276+
the first element in a vector and try to add an element to the end, which wont
277+
work if we also try to refer to that element later in the function:
278278
-->
279279

280280
プログラムに有効な参照がある場合、借用チェッカー(borrow checker)は(第4章で解説しましたが)、

0 commit comments

Comments
 (0)