Skip to content

Commit

Permalink
Rollup merge of rust-lang#36326 - JDemler:master, r=steveklabnik
Browse files Browse the repository at this point in the history
Fixed typo in nomicon
  • Loading branch information
GuillaumeGomez authored Sep 10, 2016
2 parents a221ad0 + f6aab5b commit 8bfc561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/nomicon/ownership.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ let mut data = vec![1, 2, 3];
let x = &data[0];
// OH NO! `push` causes the backing storage of `data` to be reallocated.
// Dangling pointer! User after free! Alas!
// Dangling pointer! Use after free! Alas!
// (this does not compile in Rust)
data.push(4);
Expand Down

0 comments on commit 8bfc561

Please sign in to comment.