Skip to content

Commit

Permalink
Fixed typo in nomicon
Browse files Browse the repository at this point in the history
  • Loading branch information
JDemler committed Sep 7, 2016
1 parent cf0cdc4 commit f6aab5b
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 f6aab5b

Please sign in to comment.