From 9539af86c31b05a83cde43bb888a2232decf73d4 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Fri, 28 Aug 2020 16:44:34 -0700 Subject: [PATCH] Clarify guide for unbraced closures: grammatical consistency --- src/doc/style-guide/src/expressions.md | 6 +++--- 1 file 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