Skip to content

Commit 0c422cb

Browse files
authored
Merge pull request #3075 from WalterBright/switchPromotions2
minor edits to #3703 Signed-off-by: Max Haughton <maxhaton@users.noreply.github.com> Merged-on-behalf-of: Max Haughton <maxhaton@users.noreply.github.com>
2 parents 6836d33 + b00c1fc commit 0c422cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/statement.dd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,12 +1107,12 @@ $(GNAME StatementNoCaseNoDefault):
11071107
)
11081108

11091109
$(P $(I Expression) is evaluated.
1110-
If the type of the $(I Expression) is an enum,
1110+
If the type of the $(I Expression) is `enum`,
11111111
it is repeatedly converted
11121112
to its $(GLINK2 enum, EnumBaseType) until it isn't. Then,
1113-
if the type is of integral type,
1113+
if the type is integral,
11141114
the $(I Expression) undergoes $(DDSUBLINK spec/type, integer-promotions, Integer Promotions).
1115-
Then, the type of the $(I Expression) must be either of integral type or
1115+
Then, the type of the $(I Expression) must be either integral or
11161116
a static or dynamic array of $(CODE char), $(CODE wchar), or $(CODE dchar).
11171117
)
11181118

0 commit comments

Comments
 (0)