diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2020-08-28 16:42:47 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2023-07-21 02:57:47 -0700 |
| commit | 2fc1de3c96bcd6a8c7031109c8b4ce134871d329 (patch) | |
| tree | cf4b750769130027bd77ba2fd5caed2c3b93b7c7 | |
| parent | 7577e78ce0bb8f0f91c14de8a793b06e3f7a39b0 (diff) | |
| download | rust-2fc1de3c96bcd6a8c7031109c8b4ce134871d329.tar.gz rust-2fc1de3c96bcd6a8c7031109c8b4ce134871d329.zip | |
Clarify conditions for single-line blocks
Use consistent phrasing, and add an "and".
| -rw-r--r-- | src/doc/style-guide/src/expressions.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/style-guide/src/expressions.md b/src/doc/style-guide/src/expressions.md index de8eba1dc6e..3068825e0f9 100644 --- a/src/doc/style-guide/src/expressions.md +++ b/src/doc/style-guide/src/expressions.md @@ -64,8 +64,8 @@ Write an empty block as `{}`. Write a block on a single line if: * it is either used in expression position (not statement position) or is an - unsafe block in statement position -* it contains a single-line expression and no statements + unsafe block in statement position, +* it contains a single-line expression and no statements, and * it contains no comments For a single-line block, put spaces after the opening brace and before the |
