Skip to content

Commit 8bfc561

Browse files
Rollup merge of rust-lang#36326 - JDemler:master, r=steveklabnik
Fixed typo in nomicon
2 parents a221ad0 + f6aab5b commit 8bfc561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/nomicon/ownership.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ let mut data = vec![1, 2, 3];
5252
let x = &data[0];
5353
5454
// OH NO! `push` causes the backing storage of `data` to be reallocated.
55-
// Dangling pointer! User after free! Alas!
55+
// Dangling pointer! Use after free! Alas!
5656
// (this does not compile in Rust)
5757
data.push(4);
5858

0 commit comments

Comments
 (0)