We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5255ce8 + fed1ab7 commit 1f1658dCopy full SHA for 1f1658d
src/ch08-01-vectors.md
@@ -138,7 +138,7 @@ and any other references to the contents of the vector remain valid. Recall the
138
rule that states you can’t have mutable and immutable references in the same
139
scope. That rule applies in Listing 8-7, where we hold an immutable reference to
140
the first element in a vector and try to add an element to the end, which won’t
141
-work.
+work if we also try to refer to that element later in the function:
142
143
```rust,ignore,does_not_compile
144
{{#rustdoc_include ../listings/ch08-common-collections/listing-08-07/src/main.rs:here}}
0 commit comments