about summary refs log tree commit diff
path: root/src/libstd/process.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-12-07 19:46:23 +0000
committerbors <bors@rust-lang.org>2016-12-07 19:46:23 +0000
commit535b6d397f735ff72064462be38f733d2637cd6f (patch)
tree7169db4db2aa1107f831e2dcfeb2c7d6ae9c696b /src/libstd/process.rs
parent209308439a1099b285520459f57e380f18793c07 (diff)
parentef45ec0a244868f639106998515d2f92ee3df562 (diff)
downloadrust-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.rs8
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();