Skip to content

Commit 4f30225

Browse files
committed
fix
1 parent 9f03508 commit 4f30225

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiler/ml/error_message_utils.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ let print_extra_type_clash_help ~extract_concrete_typedecl ~env loc ppf
161161
\ Floats and ints have their own mathematical operators. This means \
162162
you cannot %s a float and an int without converting between the two.\n\n\
163163
\ Possible solutions:\n\
164-
\ - Ensure all values in this calculation has the type @{<info>%s@}. \
164+
\ - Ensure all values in this calculation have the type @{<info>%s@}. \
165165
You can convert between floats and ints via @{<info>Float.toInt@} and \
166166
@{<info>Int.fromFloat@}."
167167
operator_text

tests/build_tests/super_errors/expected/math_operator_float.res.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Floats and ints have their own mathematical operators. This means you cannot add a float and an int without converting between the two.
1414

1515
Possible solutions:
16-
- Ensure all values in this calculation has the type float. You can convert between floats and ints via Float.toInt and Int.fromFloat.
16+
- Ensure all values in this calculation have the type float. You can convert between floats and ints via Float.toInt and Int.fromFloat.
1717
- Change the operator to +, which works on int
1818

1919
You can convert int to float with Int.toFloat.

tests/build_tests/super_errors/expected/primitives7.res.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Floats and ints have their own mathematical operators. This means you cannot add a float and an int without converting between the two.
1414

1515
Possible solutions:
16-
- Ensure all values in this calculation has the type float. You can convert between floats and ints via Float.toInt and Int.fromFloat.
16+
- Ensure all values in this calculation have the type float. You can convert between floats and ints via Float.toInt and Int.fromFloat.
1717
- Change the operator to +, which works on int
1818

1919
You can convert int to float with Int.toFloat.

0 commit comments

Comments
 (0)