Merge pull request #66 from xftroxgpx/patch-1

add 2 links for Command and Child in builder pattern
pull/71/head
Nick Cameron 6 years ago committed by GitHub
commit 08a0d04827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -74,8 +74,10 @@ single method with a given name, having multiple constructors is less nice in
Rust than in C++, Java, or others.
This pattern is often used where the builder object is useful in its own right,
rather than being just a builder. For example, see `std::process::Command` is a
builder for `Child` (a process). In these cases, the `T` and `TBuilder` pattern
rather than being just a builder. For example, see
[`std::process::Command`](https://doc.rust-lang.org/std/process/struct.Command.html)
is a builder for [`Child`](https://doc.rust-lang.org/std/process/struct.Child.html)
(a process). In these cases, the `T` and `TBuilder` pattern
of naming is not used.
The example takes and returns the builder by value. It is often more ergonomic

Loading…
Cancel
Save