Fixed typo in nomicon

This commit is contained in:
Jakob Demler 2016-09-07 22:15:32 +02:00
parent cf0cdc452b
commit f6aab5b9e5

View file

@ -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);