Skip to content

Commit

Permalink
Remove ./ prefix from relative URLs
Browse files Browse the repository at this point in the history
Also remove trailing whitespace to pass tidy checks.
  • Loading branch information
Pirh committed Oct 8, 2017
1 parent 19029d5 commit 9772003
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/libstd/process.rs
Expand Up @@ -745,10 +745,10 @@ impl fmt::Debug for Output {
/// Describes what to do with a standard I/O stream for a child process when
/// passed to the [`stdin`], [`stdout`], and [`stderr`] methods of [`Command`].
///
/// [`stdin`]: ./struct.Command.html#method.stdin
/// [`stdout`]: ./struct.Command.html#method.stdout
/// [`stderr`]: ./struct.Command.html#method.stderr
/// [`Command`]: ./struct.Command.html
/// [`stdin`]: struct.Command.html#method.stdin
/// [`stdout`]: struct.Command.html#method.stdout
/// [`stderr`]: struct.Command.html#method.stderr
/// [`Command`]: struct.Command.html
#[stable(feature = "process", since = "1.0.0")]
pub struct Stdio(imp::Stdio);

Expand Down Expand Up @@ -783,12 +783,12 @@ impl Stdio {
/// .stdout(Stdio::piped())
/// .spawn()
/// .expect("Failed to spawn child process");
///
///
/// {
/// let mut stdin = child.stdin.as_mut().expect("Failed to open stdin");
/// stdin.write_all("Hello, world!".as_bytes()).expect("Failed to write to stdin");
/// }
///
///
/// let output = child.wait_with_output().expect("Failed to read stdout");
/// assert_eq!(String::from_utf8_lossy(&output.stdout), "!dlrow ,olleH\n");
/// ```
Expand Down Expand Up @@ -818,13 +818,13 @@ impl Stdio {
///
/// ```no_run
/// use std::process::{Command, Stdio};
///
///
/// let output = Command::new("rev")
/// .stdin(Stdio::inherit())
/// .stdout(Stdio::piped())
/// .output()
/// .expect("Failed to execute command");
///
///
/// println!("You piped in the reverse of: {}", String::from_utf8_lossy(&output.stdout));
/// ```
#[stable(feature = "process", since = "1.0.0")]
Expand Down Expand Up @@ -854,13 +854,13 @@ impl Stdio {
///
/// ```no_run
/// use std::process::{Command, Stdio};
///
///
/// let output = Command::new("rev")
/// .stdin(Stdio::null())
/// .stdout(Stdio::piped())
/// .output()
/// .expect("Failed to execute command");
///
///
/// assert_eq!(String::from_utf8_lossy(&output.stdout), "");
/// // Ignores any piped-in input
/// ```
Expand Down

0 comments on commit 9772003

Please sign in to comment.