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 idioms/ctor.md
  • Loading branch information
simonsan authored Nov 20, 2021
commit 98c3bec5c1c3585191fda72ed9f07e365d5dc250
8 changes: 5 additions & 3 deletions idioms/ctor.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,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