mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +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)
|
||||
])]
|
||||
}
|
||||
},
|
||||
|
|
|
@ -5653,6 +5653,7 @@ All branches in an `if` must have the same type!
|
|||
|
||||
And to define a function:
|
||||
|
||||
increment : I64 -> I64
|
||||
increment = \n -> n + 1
|
||||
|
||||
"###
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue