Add function binding to error message

This commit is contained in:
Lunarmagpie 2022-12-23 11:07:57 -05:00
parent 3265a786a5
commit f932bb66a0
No known key found for this signature in database
GPG key ID: 157C5FCADDCAA093
2 changed files with 5 additions and 1 deletions

View file

@ -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)
])]
}
},