From 9ea1180cc7e1ec93d3398c8aefa32dcbff21e989 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Fri, 28 Aug 2020 16:46:07 -0700 Subject: Simplify wording in guide for unbraced closures --- src/doc/style-guide/src/expressions.md | 4 ++-- 1 file 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 -- cgit 1.4.1-3-g733a5