Skip to content

Commit 59f936f

Browse files
committed
Clarify guide for unbraced closures: grammatical consistency
1 parent 6eedc6c commit 59f936f

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
@@ -122,9 +122,9 @@ closure. Between the `|`s, you should use function definition syntax, however,
122122
elide types where possible.
123123

124124
Use closures without the enclosing `{}`, if possible. Add the `{}` when you have
125-
a return type, when there are statements, there are comments in the body, or the
126-
body expression spans multiple lines and is a control-flow expression. If using
127-
braces, follow the rules above for blocks. Examples:
125+
a return type, when there are statements, when there are comments in the body,
126+
or when the body expression spans multiple lines and is a control-flow
127+
expression. If using braces, follow the rules above for blocks. Examples:
128128

129129
```rust
130130
|arg1, arg2| expr

0 commit comments

Comments
 (0)