Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[idioms/ctor] adds default constructor section #280

Merged
Prev Previous commit
Next Next commit
Update ctor.md
  • Loading branch information
simonsan committed Nov 21, 2021
commit b27ced543260aa24529d0073fa422b6da2e9e19a
8 changes: 5 additions & 3 deletions idioms/ctor.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ any of the [`*or_default` functions in the standard library][std-or-default].
- The [builder pattern](../patterns/creational/builder.md) for constructing
objects where there are multiple configurations.

[associated function]: https://doc.rust-lang.org/stable/book/ch05-03-method-syntax.html#associated-functions
[std-default]: https://doc.rust-lang.org/stable/std/default/trait.Default.html
[std-or-default]: https://doc.rust-lang.org/stable/std/?search=or_default
- [associated function]: https://doc.rust-lang.org/stable/book/ch05-03-method-syntax.html#associated-functions

- [std-default]: https://doc.rust-lang.org/stable/std/default/trait.Default.html

- [std-or-default]: https://doc.rust-lang.org/stable/std/?search=or_default