Skip to content

Commit 224e40b

Browse files
clarify flattening single mac call
1 parent c923196 commit 224e40b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

guide/expressions.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ match foo {
661661
```
662662

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

667667
```rust
@@ -681,6 +681,9 @@ match foo {
681681
another_argument,
682682
)
683683
}
684+
baz => {
685+
macro_call!()
686+
}
684687
}
685688
```
686689

0 commit comments

Comments
 (0)