From ba17faa77e4d5a1c53046aea0901e72b6d0ec0f4 Mon Sep 17 00:00:00 2001 From: Benjamin Brienen <42162869+TheTechn0mancer@users.noreply.github.com> Date: Fri, 8 Jul 2022 02:58:55 -0400 Subject: [PATCH] Grammer in expressions.md Fixed comma splices --- guide/expressions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/expressions.md b/guide/expressions.md index a77cace..1753b00 100644 --- a/guide/expressions.md +++ b/guide/expressions.md @@ -118,7 +118,7 @@ fn main() { Don't put any extra spaces before the first `|` (unless the closure is prefixed by `move`); put a space between the second `|` and the expression of the -closure. Between the `|`s, you should use function definition syntax, however, +closure. Between the `|`s, you should use function definition syntax; however, elide types where possible. Use closures without the enclosing `{}`, if possible. Add the `{}` when you have @@ -844,7 +844,7 @@ foo(|param| { }) ``` -Such behaviour should extend recursively, however, tools may choose to limit the +Such behaviour should extend recursively; however, tools may choose to limit the depth of nesting. Only where the multi-line sub-expression is a closure with an explicit block,