Skip to content

Commit 71e61ff

Browse files
committed
Simplify wording in guide for unbraced closures
1 parent 512b85b commit 71e61ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guide/expressions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ elide types where possible.
123123

124124
Use closures without the enclosing `{}`, if possible. Add the `{}` when you have
125125
a return type, when there are statements, when there are comments inside the
126-
closure, 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:
126+
closure, or when the body expression is a control-flow expression that spans
127+
multiple lines. If using braces, follow the rules above for blocks. Examples:
128128

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

0 commit comments

Comments
 (0)