diff --git a/jscomp/build_tests/super_errors/expected/unused_variable.res.expected b/jscomp/build_tests/super_errors/expected/unused_variable.res.expected index dfaad847e4..e4c3c5f8b3 100644 --- a/jscomp/build_tests/super_errors/expected/unused_variable.res.expected +++ b/jscomp/build_tests/super_errors/expected/unused_variable.res.expected @@ -10,6 +10,6 @@ unused variable f. Fix this by: -- Deleting the variable if it's not used anymiore. +- Deleting the variable if it's not used anymore. - Prepending the variable name with `_` (like `_f`) to ignore that the variable is unused. - Using the variable somewhere. \ No newline at end of file diff --git a/jscomp/ext/warnings.ml b/jscomp/ext/warnings.ml index 0b16549056..709ec651af 100644 --- a/jscomp/ext/warnings.ml +++ b/jscomp/ext/warnings.ml @@ -379,7 +379,7 @@ let message = function "this pattern-matching is not exhaustive.\n\ All clauses in this pattern-matching are guarded." | Unused_var v | Unused_var_strict v -> - 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 + 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 | Wildcard_arg_to_constant_constr -> "wildcard pattern given as argument to a constant constructor" | Eol_in_string ->