diff --git a/library/std/src/process.rs b/library/std/src/process.rs index 1def9fe097202..82cd3647040a2 100644 --- a/library/std/src/process.rs +++ b/library/std/src/process.rs @@ -1417,13 +1417,13 @@ impl From for 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