We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e2c61 commit d3c475fCopy full SHA for d3c475f
guide/expressions.md
@@ -738,6 +738,19 @@ clause, then you must use the above form:
738
}
739
```
740
741
+If the pattern is multi-line, and the last line is less wide than the indent, do
742
+not put the `if` clause on a newline. E.g.,
743
+
744
+```rust
745
+ Token::Dimension {
746
+ value,
747
+ ref unit,
748
+ ..
749
+ } if num_context.is_ok(context.parsing_mode, value) => {
750
+ ...
751
+ }
752
+```
753
754
If every clause in a pattern is *small*, but does not fit on one line, then the
755
pattern may be formatted across multiple lines with as many clauses per line as
756
possible. Again break before a `|`:
0 commit comments