mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Don't put spaces inside tuples in error messages
This commit is contained in:
parent
7781080289
commit
7404842f49
1 changed files with 5 additions and 5 deletions
|
@ -4116,7 +4116,7 @@ mod report_text {
|
||||||
} else {
|
} else {
|
||||||
alloc
|
alloc
|
||||||
.text("(")
|
.text("(")
|
||||||
.append(alloc.ellipsis().append(alloc.text(" }")))
|
.append(alloc.ellipsis().append(alloc.text(")")))
|
||||||
}
|
}
|
||||||
.append(ext_doc)
|
.append(ext_doc)
|
||||||
} else if entries.len() == 1 {
|
} else if entries.len() == 1 {
|
||||||
|
@ -4142,7 +4142,7 @@ mod report_text {
|
||||||
}
|
}
|
||||||
.append(ext_doc);
|
.append(ext_doc);
|
||||||
|
|
||||||
// Multi-elem tuple get printed on multiple lines
|
// Multi-elem tuples get printed on multiple lines
|
||||||
alloc.vcat(
|
alloc.vcat(
|
||||||
std::iter::once(alloc.reflow("(")).chain(
|
std::iter::once(alloc.reflow("(")).chain(
|
||||||
entries
|
entries
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue