Skip to content

Commit fee746f

Browse files
committed
Improve error message grammar
1 parent 4d60693 commit fee746f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/syntax/src/res_core.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module ErrorMessages = struct
6161
matching currently guarantees to never create new intermediate data."
6262

6363
let record_pattern_spread =
64-
"Record's `...` spread is not supported in pattern matches.\n\
64+
"Record spread (`...`) is not supported in pattern matches.\n\
6565
Explanation: you can't collect a subset of a record's field into its own \
6666
record, since a record needs an explicit declaration and that subset \
6767
wouldn't have one.\n\
@@ -70,7 +70,7 @@ module ErrorMessages = struct
7070
[@@live]
7171

7272
let array_pattern_spread =
73-
"Array's `...` spread is not supported in pattern matches.\n\
73+
"Array spread (`...`) is not supported in pattern matches.\n\
7474
Explanation: such spread would create a subarray; out of performance \
7575
concern, our pattern matching currently guarantees to never create new \
7676
intermediate data.\n\

0 commit comments

Comments
 (0)