about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2020-08-28 16:46:07 -0700
committerJosh Triplett <josh@joshtriplett.org>2023-07-21 02:57:51 -0700
commit9ea1180cc7e1ec93d3398c8aefa32dcbff21e989 (patch)
treebe0ada3d78963a30b46dcd9967619c5e42e9d025
parent9362ae1616e98b08a88dcb806a11a366ed1c6b8b (diff)
downloadrust-9ea1180cc7e1ec93d3398c8aefa32dcbff21e989.tar.gz
rust-9ea1180cc7e1ec93d3398c8aefa32dcbff21e989.zip
Simplify wording in guide for unbraced closures
-rw-r--r--src/doc/style-guide/src/expressions.md4
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 0d4b97895cd..bf3fe87a0a4 100644
--- a/src/doc/style-guide/src/expressions.md
+++ b/src/doc/style-guide/src/expressions.md
@@ -126,8 +126,8 @@ but elide types where possible.
 
 Use closures without the enclosing `{}`, if possible. Add the `{}` when you have
 a return type, when there are statements, when there are comments inside the
-closure, or when the body expression spans multiple lines and is a control-flow
-expression. If using braces, follow the rules above for blocks. Examples:
+closure, or when the body expression is a control-flow expression that spans
+multiple lines. If using braces, follow the rules above for blocks. Examples:
 
 ```rust
 |arg1, arg2| expr