Skip to content

Commit

Permalink
default-expression not default-value-expression
Browse files Browse the repository at this point in the history
Part of #1240
  • Loading branch information
jclark committed Mar 28, 2024
1 parent 9fc2126 commit 8ac5894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lang/spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -4972,9 +4972,9 @@ <h4>Mapping constructor</h4>
Default values are added to the mapping value being constructed after fields
have been added for every specific-field and spread-field: if the inherent type
descriptor is a record type descriptor, then for each field-descriptor with name
<var>f</var> having a default-value-expression, if the mapping value so far
<var>f</var> having a default-expression, if the mapping value so far
constructed does not have a field with name <var>f</var>, then the closure for
the default-value-expression is evaluated resulting in a value <var>v</var>, and
the default-expression is evaluated resulting in a value <var>v</var>, and
a field with name <var>f</var> and value <var>v</var> is added to the mapping
value.
</p>
Expand Down

0 comments on commit 8ac5894

Please sign in to comment.