From 30c882521c235bbf5c278e884a83a996d5f20e47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Fri, 10 Jun 2022 20:24:45 +0200 Subject: [PATCH 1/3] docs: Fix typo in ExitStatus --- library/std/src/process.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/process.rs b/library/std/src/process.rs index 1def9fe097202..873a87e4b2d76 100644 --- a/library/std/src/process.rs +++ b/library/std/src/process.rs @@ -1417,7 +1417,7 @@ 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 From 3b45521acf2af899a94792aa1e888422c7447168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Fri, 10 Jun 2022 20:25:36 +0200 Subject: [PATCH 2/3] docs: Link to ExitCode instead of ExitStatus in ExitStatus --- library/std/src/process.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/std/src/process.rs b/library/std/src/process.rs index 873a87e4b2d76..e13520ed89e8c 100644 --- a/library/std/src/process.rs +++ b/library/std/src/process.rs @@ -1419,8 +1419,8 @@ impl From for Stdio { /// /// # 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 From 8537a1fd501abd9d03668eb41267ac0575b84f3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Fri, 10 Jun 2022 20:26:41 +0200 Subject: [PATCH 3/3] docs: Consistently mark ExitStatus as code --- library/std/src/process.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/std/src/process.rs b/library/std/src/process.rs index e13520ed89e8c..82cd3647040a2 100644 --- a/library/std/src/process.rs +++ b/library/std/src/process.rs @@ -1423,7 +1423,7 @@ impl From for Stdio { /// 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