From 977200310abe3ca6c71d467e585654537b5309c2 Mon Sep 17 00:00:00 2001 From: Pirh Date: Sun, 8 Oct 2017 19:09:16 +0100 Subject: [PATCH] Remove ./ prefix from relative URLs Also remove trailing whitespace to pass tidy checks. --- src/libstd/process.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/libstd/process.rs b/src/libstd/process.rs index 2b3f49ee3f71d..af64e68182084 100644 --- a/src/libstd/process.rs +++ b/src/libstd/process.rs @@ -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); @@ -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"); /// ``` @@ -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")] @@ -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 /// ```