Rollup merge of #41636 - moosingin3space:fix/process-exit-in-forget-doc, r=sfackler

process:exit -> process::exit in mem::forget docs

The documentation in mem::forget says "...or call `process:exit`..."
instead of `process::exit`.

r? @steveklabnik
This commit is contained in:
Corey Farwell 2017-04-29 23:44:30 -04:00 committed by GitHub
commit eab2af9af5
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ pub use intrinsics::transmute;
/// `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.
///