mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Add function binding to error message
This commit is contained in:
parent
3265a786a5
commit
f932bb66a0
2 changed files with 5 additions and 1 deletions
|
@ -290,7 +290,10 @@ fn to_expr_report<'a>(
|
|||
])
|
||||
.indent(4),
|
||||
alloc.reflow("And to define a function:"),
|
||||
alloc.reflow("increment = \\n -> n + 1").indent(4),
|
||||
alloc.vcat(vec![
|
||||
alloc.text("increment : I64 -> I64"),
|
||||
alloc.text("increment = \\n -> n + 1"),
|
||||
]).indent(4)
|
||||
])]
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue