Forgot a word.
This commit is contained in:
parent
86de9d27e7
commit
a7d4f6691b
@ -72,7 +72,7 @@ module Errors =
|
|||||||
let invalid_wild (expr: AST.expr) =
|
let invalid_wild (expr: AST.expr) =
|
||||||
let title () = "" in
|
let title () = "" in
|
||||||
let message () =
|
let message () =
|
||||||
"It looks you are using a wild pattern where it cannot be used."
|
"It looks like you are using a wild pattern where it cannot be used."
|
||||||
in
|
in
|
||||||
let expression_loc = AST.expr_to_region expr in
|
let expression_loc = AST.expr_to_region expr in
|
||||||
let data = [
|
let data = [
|
||||||
|
@ -49,7 +49,7 @@ let parse parser : ('a, string Region.reg) Stdlib.result =
|
|||||||
|
|
||||||
(* Scoping errors *)
|
(* Scoping errors *)
|
||||||
| SyntaxError.Error (SyntaxError.InvalidWild expr) ->
|
| SyntaxError.Error (SyntaxError.InvalidWild expr) ->
|
||||||
let msg = "It looks you are using a wild pattern where it cannot be used.\n"
|
let msg = "It looks like you are using a wild pattern where it cannot be used.\n"
|
||||||
and region = AST.expr_to_region expr in
|
and region = AST.expr_to_region expr in
|
||||||
let error = Unit.short_error ~offsets:IO.options#offsets
|
let error = Unit.short_error ~offsets:IO.options#offsets
|
||||||
IO.options#mode msg region
|
IO.options#mode msg region
|
||||||
|
Loading…
Reference in New Issue
Block a user