diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2020-08-28 16:44:34 -0700 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2023-07-21 02:57:51 -0700 |
| commit | 9539af86c31b05a83cde43bb888a2232decf73d4 (patch) | |
| tree | 08d261ef63810cb627c823aad347ea01343ef050 /src/doc | |
| parent | 2fc1de3c96bcd6a8c7031109c8b4ce134871d329 (diff) | |
| download | rust-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.md | 6 |
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 |
