Skip to content

Commit ece0fb9

Browse files
authored
Fix typo in new error message (#7051)
1 parent 915dc14 commit ece0fb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jscomp/build_tests/super_errors/expected/unused_variable.res.expected

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
unused variable f.
1111

1212
Fix this by:
13-
- Deleting the variable if it's not used anymiore.
13+
- Deleting the variable if it's not used anymore.
1414
- Prepending the variable name with `_` (like `_f`) to ignore that the variable is unused.
1515
- Using the variable somewhere.

jscomp/ext/warnings.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ let message = function
379379
"this pattern-matching is not exhaustive.\n\
380380
All clauses in this pattern-matching are guarded."
381381
| Unused_var v | Unused_var_strict v ->
382-
Format.sprintf "unused variable %s.\n\nFix this by:\n- Deleting the variable if it's not used anymiore.\n- Prepending the variable name with `_` (like `_%s`) to ignore that the variable is unused.\n- Using the variable somewhere." v v
382+
Format.sprintf "unused variable %s.\n\nFix this by:\n- Deleting the variable if it's not used anymore.\n- Prepending the variable name with `_` (like `_%s`) to ignore that the variable is unused.\n- Using the variable somewhere." v v
383383
| Wildcard_arg_to_constant_constr ->
384384
"wildcard pattern given as argument to a constant constructor"
385385
| Eol_in_string ->

0 commit comments

Comments
 (0)