1
Fork 0

Update process.rs

This commit is contained in:
raph 2017-04-06 10:17:32 +02:00 committed by GitHub
parent 4e1147f340
commit 16c77d7da1

View file

@ -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() };