mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Rollup merge of #97958 - mkroening:exit-status-docs, r=Dylan-DPC
ExitStatus docs fixups This fixes a typo, adds a link and adds code-quotes in the ExitStatus docs.
This commit is contained in:
@@ -1417,13 +1417,13 @@ fn from(file: fs::File) -> Stdio {
|
||||
/// For proper error reporting of failed processes, print the value of `ExitStatus` or
|
||||
/// `ExitStatusError` using their implementations of [`Display`](crate::fmt::Display).
|
||||
///
|
||||
/// # Differences from `ExitStatus`
|
||||
/// # Differences from `ExitCode`
|
||||
///
|
||||
/// `ExitCode` is intended for terminating the currently running process, via
|
||||
/// the `Termination` trait, in contrast to [`ExitStatus`], which represents the
|
||||
/// [`ExitCode`] is intended for terminating the currently running process, via
|
||||
/// the `Termination` trait, in contrast to `ExitStatus`, which represents the
|
||||
/// termination of a child process. These APIs are separate due to platform
|
||||
/// compatibility differences and their expected usage; it is not generally
|
||||
/// possible to exactly reproduce an ExitStatus from a child for the current
|
||||
/// possible to exactly reproduce an `ExitStatus` from a child for the current
|
||||
/// process after the fact.
|
||||
///
|
||||
/// [`status`]: Command::status
|
||||
@@ -1684,7 +1684,7 @@ impl crate::error::Error for ExitStatusError {}
|
||||
/// the `Termination` trait, in contrast to [`ExitStatus`], which represents the
|
||||
/// termination of a child process. These APIs are separate due to platform
|
||||
/// compatibility differences and their expected usage; it is not generally
|
||||
/// possible to exactly reproduce an ExitStatus from a child for the current
|
||||
/// possible to exactly reproduce an `ExitStatus` from a child for the current
|
||||
/// process after the fact.
|
||||
///
|
||||
/// # Examples
|
||||
|
||||
Reference in New Issue
Block a user