]> git.lizzy.rs Git - rust.git/commitdiff
Fixed typo in nomicon
authorJakob Demler <jdemler@curry-software.com>
Wed, 7 Sep 2016 20:15:32 +0000 (22:15 +0200)
committerJakob Demler <jdemler@curry-software.com>
Wed, 7 Sep 2016 20:15:32 +0000 (22:15 +0200)
src/doc/nomicon/ownership.md

index 6be8d3b70286ac27b1bed67d43a85191f37218a6..a6ecf6ab91b4f96c7745af6fa7deab9d146888ff 100644 (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);