Skip to content

Commit 8b99ba9

Browse files
ntreldlang-bot
authored andcommitted
[spec] assert argument is converted to bool
1 parent d54769b commit 8b99ba9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/expression.dd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2392,7 +2392,8 @@ $(GNAME AssertArguments):
23922392
$(GLINK AssignExpression) $(D ,) $(GLINK AssignExpression) $(D ,)$(OPT)
23932393
)
23942394

2395-
$(P The first $(I AssignExpression) must evaluate to `true`. If it does not, an $(I Assert Failure)
2395+
$(P The first $(I AssignExpression) is evaluated and converted to a boolean value.
2396+
If the value is not `true`, an $(I Assert Failure)
23962397
has occurred and the program enters an $(I Invalid State).
23972398
)
23982399

0 commit comments

Comments
 (0)