diff options
| author | bors <bors@rust-lang.org> | 2016-12-07 19:46:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-12-07 19:46:23 +0000 |
| commit | 535b6d397f735ff72064462be38f733d2637cd6f (patch) | |
| tree | 7169db4db2aa1107f831e2dcfeb2c7d6ae9c696b /src/libstd/process.rs | |
| parent | 209308439a1099b285520459f57e380f18793c07 (diff) | |
| parent | ef45ec0a244868f639106998515d2f92ee3df562 (diff) | |
| download | rust-535b6d397f735ff72064462be38f733d2637cd6f.tar.gz rust-535b6d397f735ff72064462be38f733d2637cd6f.zip | |
Auto merge of #38214 - GuillaumeGomez:rollup, r=GuillaumeGomez
Rollup of 9 pull requests - Successful merges: #38085, #38123, #38151, #38153, #38158, #38163, #38186, #38189, #38208 - Failed merges:
Diffstat (limited to 'src/libstd/process.rs')
| -rw-r--r-- | src/libstd/process.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs index bfc36d5b21f..858537dd2de 100644 --- a/src/libstd/process.rs +++ b/src/libstd/process.rs @@ -827,6 +827,14 @@ impl Child { /// will be run. If a clean shutdown is needed it is recommended to only call /// this function at a known point where there are no more destructors left /// to run. +/// +/// # Examples +/// +/// ``` +/// use std::process; +/// +/// process::exit(0); +/// ``` #[stable(feature = "rust1", since = "1.0.0")] pub fn exit(code: i32) -> ! { ::sys_common::cleanup(); |
