Skip to content

Commit 9ea1180

Browse files
committed
Simplify wording in guide for unbraced closures
1 parent 9362ae1 commit 9ea1180

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
@@ -126,8 +126,8 @@ but elide types where possible.
126126

127127
Use closures without the enclosing `{}`, if possible. Add the `{}` when you have
128128
a return type, when there are statements, when there are comments inside the
129-
closure, or when the body expression spans multiple lines and is a control-flow
130-
expression. If using braces, follow the rules above for blocks. Examples:
129+
closure, or when the body expression is a control-flow expression that spans
130+
multiple lines. If using braces, follow the rules above for blocks. Examples:
131131

132132
```rust
133133
|arg1, arg2| expr

0 commit comments

Comments
 (0)