mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
display join points like a let ... in ...
This commit is contained in:
parent
b7f7de8afb
commit
9af83bb490
1 changed files with 2 additions and 1 deletions
|
@ -1134,7 +1134,6 @@ impl<'a> Stmt<'a> {
|
||||||
|
|
||||||
alloc.intersperse(
|
alloc.intersperse(
|
||||||
vec![
|
vec![
|
||||||
remainder.to_doc(alloc),
|
|
||||||
alloc
|
alloc
|
||||||
.text("joinpoint ")
|
.text("joinpoint ")
|
||||||
.append(join_point_to_doc(alloc, *id))
|
.append(join_point_to_doc(alloc, *id))
|
||||||
|
@ -1142,6 +1141,8 @@ impl<'a> Stmt<'a> {
|
||||||
.append(alloc.intersperse(it, alloc.space()))
|
.append(alloc.intersperse(it, alloc.space()))
|
||||||
.append(":"),
|
.append(":"),
|
||||||
continuation.to_doc(alloc).indent(4),
|
continuation.to_doc(alloc).indent(4),
|
||||||
|
alloc.text("in"),
|
||||||
|
remainder.to_doc(alloc),
|
||||||
],
|
],
|
||||||
alloc.hardline(),
|
alloc.hardline(),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue