Skip to content

Commit

Permalink
Merge pull request #2357 from rust-lang/gh1785
Browse files Browse the repository at this point in the history
Clarify some wording a bit
  • Loading branch information
steveklabnik authored Jun 5, 2020
2 parents 5255ce8 + fed1ab7 commit 1f1658d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch08-01-vectors.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ and any other references to the contents of the vector remain valid. Recall the
rule that states you can’t have mutable and immutable references in the same
scope. That rule applies in Listing 8-7, where we hold an immutable reference to
the first element in a vector and try to add an element to the end, which won’t
work.
work if we also try to refer to that element later in the function:

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

0 comments on commit 1f1658d

Please sign in to comment.