Skip to content

Commit 087b838

Browse files
process:exit -> process::exit in mem::forget docs
The documentation in mem::forget says "...or call `process:exit`..." instead of `process::exit`. r? @steveklabnik
1 parent b4d3ed6 commit 087b838

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)