Skip to content

Commit d6b8242

Browse files
committed
Auto merge of #26045 - sourcefrog:patch-1, r=alexcrichton
File handles are inherited from, not by, the parent process
2 parents c21fd9a + 17d76b3 commit d6b8242

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/process.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ impl Command {
268268

269269
/// Executes the command as a child process, returning a handle to it.
270270
///
271-
/// By default, stdin, stdout and stderr are inherited by the parent.
271+
/// By default, stdin, stdout and stderr are inherited from the parent.
272272
#[stable(feature = "process", since = "1.0.0")]
273273
pub fn spawn(&mut self) -> io::Result<Child> {
274274
self.spawn_inner(StdioImp::Raw(imp::Stdio::Inherit))
@@ -300,7 +300,7 @@ impl Command {
300300
/// Executes a command as a child process, waiting for it to finish and
301301
/// collecting its exit status.
302302
///
303-
/// By default, stdin, stdout and stderr are inherited by the parent.
303+
/// By default, stdin, stdout and stderr are inherited from the parent.
304304
///
305305
/// # Examples
306306
///

0 commit comments

Comments
 (0)