Skip to content

Commit 096fa1c

Browse files
estebankpnkfelix
andauthored
Update text/0000-default-field-values.md
Co-authored-by: Felix S Klock II <[email protected]>
1 parent 3ed9f27 commit 096fa1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-default-field-values.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1047,8 +1047,8 @@ There are many reasons for this restriction:
10471047

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

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

0 commit comments

Comments
 (0)