]> git.proxmox.com Git - rustc.git/blobdiff - src/doc/style/ownership/builders.md
Imported Upstream version 1.2.0+dfsg1
[rustc.git] / src / doc / style / ownership / builders.md
index 8f721a9767672fa5439a9668dfb619ab36f470ac..348be516e374d7aea536f22625aab9a8aecb86e9 100644 (file)
@@ -16,7 +16,7 @@ If `T` is such a data structure, consider introducing a `T` _builder_:
    value. When possible, choose a better name: e.g. `Command` is the builder for
    `Process`.
 2. The builder constructor should take as parameters only the data _required_ to
-   to make a `T`.
+   make a `T`.
 3. The builder should offer a suite of convenient methods for configuration,
    including setting up compound inputs (like slices) incrementally.
    These methods should return `self` to allow chaining.
@@ -75,7 +75,7 @@ impl Command {
     }
 
     /// Executes the command as a child process, which is returned.
-    pub fn spawn(&self) -> IoResult<Process> {
+    pub fn spawn(&self) -> std::io::Result<Process> {
         ...
     }
 }