Skip to content

Commit 91c7daa

Browse files
phunglesonManishearth
authored andcommitted
Wrap 80 columns
1 parent 0f8a53b commit 91c7daa

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

reference.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2767,9 +2767,13 @@ Point3d {y: 0, z: 10, .. base};
27672767

27682768
#### Struct field init shorthand
27692769

2770-
When initializing a data structure (struct, enum, union) with named fields, allow writing `fieldname` as a shorthand for `fieldname: fieldname`. This allows a compact syntax for initialization, with less duplication.
2770+
When initializing a data structure (struct, enum, union) with named fields,
2771+
allow writing `fieldname` as a shorthand for `fieldname: fieldname`. This
2772+
allows a compact syntax for initialization, with less duplication.
27712773

2772-
In the initializer for a `struct` with named fields, a `union` with named fields, or an enum variant with named fields, accept an identifier `field` as a shorthand for `field: field`.
2774+
In the initializer for a `struct` with named fields, a `union` with named
2775+
fields, or an enum variant with named fields, accept an identifier `field` as a
2776+
shorthand for `field: field`.
27732777

27742778
Example:
27752779

0 commit comments

Comments
 (0)