Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 86f8f81

Browse files
authoredFeb 27, 2019
Rollup merge of rust-lang#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
2 parents 372742b + abd88a9 commit 86f8f81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/libstd/process.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ impl From<ChildStdin> for Stdio {
10151015
///
10161016
/// `ChildStdin` will be converted to `Stdio` using `Stdio::from` under the hood.
10171017
///
1018-
/// ```rust
1018+
/// ```rust,no_run
10191019
/// use std::process::{Command, Stdio};
10201020
///
10211021
/// let reverse = Command::new("rev")
@@ -1044,7 +1044,7 @@ impl From<ChildStdout> for Stdio {
10441044
///
10451045
/// `ChildStdout` will be converted to `Stdio` using `Stdio::from` under the hood.
10461046
///
1047-
/// ```rust
1047+
/// ```rust,no_run
10481048
/// use std::process::{Command, Stdio};
10491049
///
10501050
/// let hello = Command::new("echo")

0 commit comments

Comments
 (0)
Please sign in to comment.