mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
make changes suggested by folkertdev
This commit is contained in:
parent
db9c00ec1e
commit
3265a786a5
2 changed files with 5 additions and 3 deletions
|
@ -279,8 +279,8 @@ fn to_expr_report<'a>(
|
|||
alloc.reflow("The arrow "),
|
||||
alloc.parser_suggestion("->"),
|
||||
alloc.reflow(" is only used to define cases in a "),
|
||||
alloc.keyword("when"),
|
||||
alloc.reflow("."),
|
||||
alloc.keyword("`when`"),
|
||||
alloc.reflow("expression:"),
|
||||
]),
|
||||
alloc
|
||||
.vcat(vec![
|
||||
|
@ -289,6 +289,8 @@ fn to_expr_report<'a>(
|
|||
alloc.text("Green -> \"go!\"").indent(4),
|
||||
])
|
||||
.indent(4),
|
||||
alloc.reflow("And to define a function:"),
|
||||
alloc.reflow("increment = \\n -> n + 1").indent(4),
|
||||
])]
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue