docs: use third form in API docs (#2027)

This commit is contained in:
Oleg Nosov
2020-01-24 09:31:13 -08:00
committed by Carl Lerche
parent a70f7203a4
commit f9ddb93604
83 changed files with 288 additions and 278 deletions
+5 -5
View File
@@ -365,7 +365,7 @@ impl Command {
self
}
/// Configuration for the child process's standard input (stdin) handle.
/// Sets configuration for the child process's standard input (stdin) handle.
///
/// Defaults to [`inherit`] when used with `spawn` or `status`, and
/// defaults to [`piped`] when used with `output`.
@@ -389,7 +389,7 @@ impl Command {
self
}
/// Configuration for the child process's standard output (stdout) handle.
/// Sets configuration for the child process's standard output (stdout) handle.
///
/// Defaults to [`inherit`] when used with `spawn` or `status`, and
/// defaults to [`piped`] when used with `output`.
@@ -413,7 +413,7 @@ impl Command {
self
}
/// Configuration for the child process's standard error (stderr) handle.
/// Sets configuration for the child process's standard error (stderr) handle.
///
/// Defaults to [`inherit`] when used with `spawn` or `status`, and
/// defaults to [`piped`] when used with `output`.
@@ -468,7 +468,7 @@ impl Command {
self
}
/// Similar to `uid`, but sets the group ID of the child process. This has
/// Similar to `uid` but sets the group ID of the child process. This has
/// the same semantics as the `uid` field.
#[cfg(unix)]
pub fn gid(&mut self, id: u32) -> &mut Command {
@@ -564,7 +564,7 @@ impl Command {
})
}
/// Executes a command as a child process, waiting for it to finish and
/// Executes the command as a child process, waiting for it to finish and
/// collecting its exit status.
///
/// By default, stdin, stdout and stderr are inherited from the parent.