about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2020-08-28 16:44:34 -0700
committerJosh Triplett <josh@joshtriplett.org>2023-07-21 02:57:51 -0700
commit9539af86c31b05a83cde43bb888a2232decf73d4 (patch)
tree08d261ef63810cb627c823aad347ea01343ef050 /src/doc
parent2fc1de3c96bcd6a8c7031109c8b4ce134871d329 (diff)
downloadrust-9539af86c31b05a83cde43bb888a2232decf73d4.tar.gz
rust-9539af86c31b05a83cde43bb888a2232decf73d4.zip
Clarify guide for unbraced closures: grammatical consistency
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/style-guide/src/expressions.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/style-guide/src/expressions.md b/src/doc/style-guide/src/expressions.md
index 3068825e0f9..1870b194d9d 100644
--- a/src/doc/style-guide/src/expressions.md
+++ b/src/doc/style-guide/src/expressions.md
@@ -125,9 +125,9 @@ expression of the closure. Between the `|`s, use function definition syntax,
 but elide types where possible.
 
 Use closures without the enclosing `{}`, if possible. Add the `{}` when you have
-a return type, when there are statements, there are comments in the body, or the
-body expression spans multiple lines and is a control-flow expression. If using
-braces, follow the rules above for blocks. Examples:
+a return type, when there are statements, when there are comments in the body,
+or when the body expression spans multiple lines and is a control-flow
+expression. If using braces, follow the rules above for blocks. Examples:
 
 ```rust
 |arg1, arg2| expr