Skip to content

Commit

Permalink
Update text/0000-default-field-values.md
Browse files Browse the repository at this point in the history
Co-authored-by: Felix S Klock II <pnkfelix@pnkfx.org>
  • Loading branch information
estebank and pnkfelix authored Oct 29, 2024
1 parent 3ed9f27 commit 096fa1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions text/0000-default-field-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -1047,8 +1047,8 @@ There are many reasons for this restriction:

As an alternative to the proposed design is either explicitly writing out
`..Default::default()` or extending the language such that `Foo { .. }` becomes
sugar for `Foo { ..Default::default() }`. While the latter idea does not satisfy
any of the [motivation] set out, the former does to a small extent.
sugar for `Foo { ..Default::default() }`. While the former idea does not satisfy
any of the [motivation] set out, the latter does to a small extent.

In particular, `Foo { .. }` as sugar slightly improves ergonomics.
However, it has some notable problems:
Expand Down

0 comments on commit 096fa1c

Please sign in to comment.