Skip to content

Commit

Permalink
Merge #504
Browse files Browse the repository at this point in the history
504: fix base initializer semantics r=Veykril a=nefelitav

The base initializer does not work for unions.


Co-authored-by: nefelitav <[email protected]>
  • Loading branch information
bors-ferrocene[bot] and nefelitav authored Jun 19, 2024
2 parents ef10df1 + 266cdf9 commit 48630f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3035,8 +3035,8 @@ A :t:`constructee` indicates the :t:`enum variant`, :t:`struct`, or :t:`union`
whose value is being constructed by a :t:`struct expression`.

:dp:`fls_uib1ml41mfrn`
A :t:`base initializer` is a :t:`construct` that specifies an :t:`enum value`,
a :t:`struct value`, or a :t:`union value` to be used as a base for
A :t:`base initializer` is a :t:`construct` that specifies an :t:`enum value`, or
a :t:`struct value` to be used as a base for
construction in a :t:`struct expression`.

:dp:`fls_gfu267bpl9ql`
Expand Down

0 comments on commit 48630f4

Please sign in to comment.