Skip to content

Commit

Permalink
Rollup merge of rust-lang#41636 - moosingin3space:fix/process-exit-in…
Browse files Browse the repository at this point in the history
…-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
  • Loading branch information
frewsxcv authored Apr 30, 2017
2 parents c9f5a47 + 087b838 commit eab2af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down

0 comments on commit eab2af9

Please sign in to comment.