Skip to content

Commit 6eedc6c

Browse files
committed
Clarify conditions for single-line blocks
Use consistent phrasing, and add an "and".
1 parent 7416e12 commit 6eedc6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guide/expressions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ An empty block should be written as `{}`.
6161
A block may be written on a single line if:
6262

6363
* it is either used in expression position (not statement position) or is an
64-
unsafe block in statement position
65-
* contains a single-line expression and no statements
66-
* contains no comments
64+
unsafe block in statement position,
65+
* it contains a single-line expression and no statements, and
66+
* it contains no comments
6767

6868
A single line block should have spaces after the opening brace and before the
6969
closing brace.

0 commit comments

Comments
 (0)