diff --git a/guide/expressions.md b/guide/expressions.md index 78c86fe..864e95f 100644 --- a/guide/expressions.md +++ b/guide/expressions.md @@ -312,6 +312,18 @@ match foo { } ``` +The `=>` in the match should be in a straight column. + +Examples: + +```rust +match foo { + foo => bar, + foofoo => barbar, + foofoofoo => barbarbar, +} +``` + If the body is a single expression with no line comments is a *combinable expression* (see below for details), then it may be started on the same line as the right-hand side. If not, then it must be in a block. Example,