Skip to content

Commit 5c5c00d

Browse files
committed
Patterns
closes #14
1 parent 9097161 commit 5c5c00d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

guide/expressions.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,6 @@ foo(first_arg, x, |param| {
676676
```
677677

678678

679-
680679
### Ranges
681680

682681
Do not put spaces in ranges, e.g., `0..10`, `x..=y`, `..x.len()`, `foo..`.
@@ -702,3 +701,8 @@ literals, but we do not make a recommendation for either lower- or upper-case.
702701
Tools should have an option to convert mixed case literals to upper-case, and
703702
may have an option to convert all literals to either lower- or upper-case.
704703

704+
705+
## Patterns
706+
707+
Patterns should be formatted like their corresponding expressions. See the
708+
section on `match` for additional formatting for patterns in match arms.

0 commit comments

Comments
 (0)