Skip to content

Commit 5dc8f17

Browse files
authored
Rollup merge of rust-lang#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.
2 parents 640019b + 8537a1f commit 5dc8f17

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

library/std/src/process.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1417,13 +1417,13 @@ impl From<fs::File> for Stdio {
14171417
/// For proper error reporting of failed processes, print the value of `ExitStatus` or
14181418
/// `ExitStatusError` using their implementations of [`Display`](crate::fmt::Display).
14191419
///
1420-
/// # Differences from `ExitStatus`
1420+
/// # Differences from `ExitCode`
14211421
///
1422-
/// `ExitCode` is intended for terminating the currently running process, via
1423-
/// the `Termination` trait, in contrast to [`ExitStatus`], which represents the
1422+
/// [`ExitCode`] is intended for terminating the currently running process, via
1423+
/// the `Termination` trait, in contrast to `ExitStatus`, which represents the
14241424
/// termination of a child process. These APIs are separate due to platform
14251425
/// compatibility differences and their expected usage; it is not generally
1426-
/// possible to exactly reproduce an ExitStatus from a child for the current
1426+
/// possible to exactly reproduce an `ExitStatus` from a child for the current
14271427
/// process after the fact.
14281428
///
14291429
/// [`status`]: Command::status
@@ -1684,7 +1684,7 @@ impl crate::error::Error for ExitStatusError {}
16841684
/// the `Termination` trait, in contrast to [`ExitStatus`], which represents the
16851685
/// termination of a child process. These APIs are separate due to platform
16861686
/// compatibility differences and their expected usage; it is not generally
1687-
/// possible to exactly reproduce an ExitStatus from a child for the current
1687+
/// possible to exactly reproduce an `ExitStatus` from a child for the current
16881688
/// process after the fact.
16891689
///
16901690
/// # Examples

0 commit comments

Comments
 (0)