minor error improvement

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
Anton-4 2023-08-02 17:01:57 +02:00 committed by GitHub
parent daee114ec1
commit 6eb5362383
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -301,11 +301,13 @@ fn to_expr_report<'a>(
alloc.reflow(" and the expression after it."),
],
"<|" => vec![
alloc.reflow("Roc doesn't have "),
alloc.reflow("Roc doesn't have a "),
alloc.parser_suggestion("<|"),
alloc.reflow(" operator. Please use parentheses or "),
alloc.reflow(" operator. Please use parentheses "),
alloc.parser_suggestion("()"),
alloc.reflow(" or "),
alloc.parser_suggestion("|>"),
alloc.reflow(" operator instead."),
alloc.reflow(" instead."),
],
_ => vec![
alloc.reflow("I have no specific suggestion for this operator, "),