Update process.rs
This commit is contained in:
parent
4e1147f340
commit
16c77d7da1
@ -1071,8 +1071,8 @@ pub fn exit(code: i32) -> ! {
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// The abort function terminates the process, so the destructor will not get
|
||||
/// run on the example below:
|
||||
/// The [`abort`] function terminates the process, so the destructor will not
|
||||
/// get run on the example below:
|
||||
///
|
||||
/// ```no_run
|
||||
/// use std::process;
|
||||
@ -1091,7 +1091,6 @@ pub fn exit(code: i32) -> ! {
|
||||
/// // the destructor implemented for HasDrop will never get run
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
#[stable(feature = "process_abort", since = "1.17.0")]
|
||||
pub fn abort() -> ! {
|
||||
unsafe { ::sys::abort_internal() };
|
||||
|
Loading…
x
Reference in New Issue
Block a user