mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
format
This commit is contained in:
parent
f170509bf1
commit
22e2545fd6
21 changed files with 268 additions and 413 deletions
|
@ -516,7 +516,9 @@ fn fmt_when<'a, 'buf>(
|
|||
let (first_pattern, rest) = patterns.split_first().unwrap();
|
||||
let is_multiline = match rest.last() {
|
||||
None => false,
|
||||
Some(last_pattern) => first_pattern.region.start().line != last_pattern.region.end().line,
|
||||
Some(last_pattern) => {
|
||||
first_pattern.region.start().line != last_pattern.region.end().line
|
||||
}
|
||||
};
|
||||
|
||||
fmt_pattern(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue