about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-02-27 13:32:27 +0100
committerGitHub <noreply@github.com>2019-02-27 13:32:27 +0100
commitc0c7d59c2b399bad202aba3fe63146ba1cd1595a (patch)
tree85b14fc8ae55dea2f32d8fa26ebd84d31029f833 /src/libstd
parent5eadeed702ddbc8afa62844ad3e9a721b9594206 (diff)
parentabd88a9e3a6014134dac0a705eae6de7448ea514 (diff)
downloadrust-c0c7d59c2b399bad202aba3fe63146ba1cd1595a.tar.gz
rust-c0c7d59c2b399bad202aba3fe63146ba1cd1595a.zip
Rollup merge of #58746 - ipetkov:std-process-docs, r=cramertj
std: docs: Disable running several Stdio doctests

* A number of `Stdio` related doc examples include running the "rev"
command to illustrate piping commands. The majority of these tests are
marked as `no_run` except for two tests which were not
* Not running these tests is unlikely to cause any negative impact, and
doing so also allows the test suite to pass in environments where the
"rev" command is unavailable
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/process.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index a2ef85016d8..735ce61c9bc 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -1015,7 +1015,7 @@ impl From<ChildStdin> for Stdio {
     ///
     /// `ChildStdin` will be converted to `Stdio` using `Stdio::from` under the hood.
     ///
-    /// ```rust
+    /// ```rust,no_run
     /// use std::process::{Command, Stdio};
     ///
     /// let reverse = Command::new("rev")
@@ -1044,7 +1044,7 @@ impl From<ChildStdout> for Stdio {
     ///
     /// `ChildStdout` will be converted to `Stdio` using `Stdio::from` under the hood.
     ///
-    /// ```rust
+    /// ```rust,no_run
     /// use std::process::{Command, Stdio};
     ///
     /// let hello = Command::new("echo")