Skip to content

Commit eab2af9

Browse files
authored
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
2 parents c9f5a47 + 087b838 commit eab2af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/mem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub use intrinsics::transmute;
4040
/// `forget` is not marked as `unsafe`, because Rust's safety guarantees
4141
/// do not include a guarantee that destructors will always run. For example,
4242
/// a program can create a reference cycle using [`Rc`][rc], or call
43-
/// [`process:exit`][exit] to exit without running destructors. Thus, allowing
43+
/// [`process::exit`][exit] to exit without running destructors. Thus, allowing
4444
/// `mem::forget` from safe code does not fundamentally change Rust's safety
4545
/// guarantees.
4646
///

0 commit comments

Comments
 (0)