We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cdbd5e commit f90986eCopy full SHA for f90986e
src/libstd/process.rs
@@ -827,6 +827,14 @@ impl Child {
827
/// will be run. If a clean shutdown is needed it is recommended to only call
828
/// this function at a known point where there are no more destructors left
829
/// to run.
830
+///
831
+/// # Examples
832
833
+/// ```
834
+/// use std::process;
835
836
+/// process::exit(0);
837
838
#[stable(feature = "rust1", since = "1.0.0")]
839
pub fn exit(code: i32) -> ! {
840
::sys_common::cleanup();
0 commit comments