]> git.lizzy.rs Git - rust.git/commitdiff
process:exit -> process::exit in mem::forget docs
authorNathan Moos <moosingin3space@gmail.com>
Sat, 29 Apr 2017 18:56:35 +0000 (14:56 -0400)
committerNathan Moos <moosingin3space@gmail.com>
Sat, 29 Apr 2017 18:56:35 +0000 (14:56 -0400)
The documentation in mem::forget says "...or call `process:exit`..."
instead of `process::exit`.

r? @steveklabnik

src/libcore/mem.rs

index 7be927b28ed7eb7ecfef5fcc8da2ab1d0cdc9410..b397aba6b92df3630aded3369571a114f322f079 100644 (file)
@@ -40,7 +40,7 @@
 /// `forget` is not marked as `unsafe`, because Rust's safety guarantees
 /// do not include a guarantee that destructors will always run. For example,
 /// a program can create a reference cycle using [`Rc`][rc], or call
-/// [`process:exit`][exit] to exit without running destructors. Thus, allowing
+/// [`process::exit`][exit] to exit without running destructors. Thus, allowing
 /// `mem::forget` from safe code does not fundamentally change Rust's safety
 /// guarantees.
 ///