mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-28 00:00:11 +02:00
docs: use third form in API docs (#2027)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user