Skip to content

Commit 1f1658d

Browse files
authored
Merge pull request #2357 from rust-lang/gh1785
Clarify some wording a bit
2 parents 5255ce8 + fed1ab7 commit 1f1658d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch08-01-vectors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ and any other references to the contents of the vector remain valid. Recall the
138138
rule that states you can’t have mutable and immutable references in the same
139139
scope. That rule applies in Listing 8-7, where we hold an immutable reference to
140140
the first element in a vector and try to add an element to the end, which won’t
141-
work.
141+
work if we also try to refer to that element later in the function:
142142

143143
```rust,ignore,does_not_compile
144144
{{#rustdoc_include ../listings/ch08-common-collections/listing-08-07/src/main.rs:here}}

0 commit comments

Comments
 (0)