Skip to content

Commit

Permalink
Grammer in expressions.md
Browse files Browse the repository at this point in the history
Fixed comma splices
  • Loading branch information
BenjaminBrienen authored and calebcartwright committed Jul 9, 2022
1 parent 9d50e2a commit ba17faa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guide/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ba17faa

Please sign in to comment.