Skip to content

Commit 2fc1de3

Browse files
committed
Clarify conditions for single-line blocks
Use consistent phrasing, and add an "and".
1 parent 7577e78 commit 2fc1de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/style-guide/src/expressions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ Write an empty block as `{}`.
6464
Write a block on a single line if:
6565

6666
* it is either used in expression position (not statement position) or is an
67-
unsafe block in statement position
68-
* it contains a single-line expression and no statements
67+
unsafe block in statement position,
68+
* it contains a single-line expression and no statements, and
6969
* it contains no comments
7070

7171
For a single-line block, put spaces after the opening brace and before the

0 commit comments

Comments
 (0)