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