Skip to content

Commit 9c5c3cb

Browse files
committed
Document boolean literal expressions
1 parent e06b267 commit 9c5c3cb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/expressions/literal-expr.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,12 @@ The value of the expression is determined from the string representation of the
150150

151151
A boolean literal expression consists of one of the keywords `true` or `false`.
152152

153-
> **Note**: This section is incomplete.
153+
The expression's type is the primitive [boolean type], and its value is:
154+
* true if the keyword is `true`
155+
* false if the keyword is `false`
156+
154157

158+
[boolean type]: ../types/boolean.md
155159
[constant expression]: ../const_eval.md#constant-expressions
156160
[floating-point types]: ../types/numeric.md#floating-point-types
157161
[lint check]: ../attributes/diagnostics.md#lint-check-attributes

0 commit comments

Comments
 (0)