]> git.lizzy.rs Git - rust.git/commitdiff
Doc fix for process.rs
authorMartin Pool <mbp@sourcefrog.net>
Sat, 6 Jun 2015 00:27:04 +0000 (17:27 -0700)
committerMartin Pool <mbp@sourcefrog.net>
Sat, 6 Jun 2015 00:27:04 +0000 (17:27 -0700)
File handles are inherited from, not by, the parent process

src/libstd/process.rs

index 42d9ad81b598aac8cdd23d6afd2cac1a75901b35..e8f2c4eefd4a5506885ede12b83e6c4d6218939c 100644 (file)
@@ -268,7 +268,7 @@ fn spawn_inner(&self, default_io: StdioImp) -> io::Result<Child> {
 
     /// Executes the command as a child process, returning a handle to it.
     ///
-    /// By default, stdin, stdout and stderr are inherited by the parent.
+    /// By default, stdin, stdout and stderr are inherited from the parent.
     #[stable(feature = "process", since = "1.0.0")]
     pub fn spawn(&mut self) -> io::Result<Child> {
         self.spawn_inner(StdioImp::Raw(imp::Stdio::Inherit))