Skip to content

Commit

Permalink
clarify flattening single mac call
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Oct 28, 2020
1 parent c923196 commit 224e40b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion guide/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ match foo {
```

If the body is a single expression with no line comments and not a control flow
expression, then it may be started on the same line as the right-hand side. If
expression nor a macro call expression, then it may be started on the same line as the right-hand side. If
not, then it must be in a block. Example,

```rust
Expand All @@ -681,6 +681,9 @@ match foo {
another_argument,
)
}
baz => {
macro_call!()
}
}
```

Expand Down

0 comments on commit 224e40b

Please sign in to comment.