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:
commit
eab2af9af5
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue