Skip to content

Commit 438c041

Browse files
committed
wording
1 parent 1b88f55 commit 438c041

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

compiler/ml/printtyp.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,8 +1404,8 @@ let explanation unif t3 t4 ppf =
14041404
@,\
14051405
Possible solutions:\n\
14061406
\ - Either make the first variant @{<info>open@} so it can accept \
1407-
constructors it hasn't listed itself. To do this, make sure the type \
1408-
starts with @{<info>[>@} instead of @{<info>[@}\n\
1407+
additional constructors. To do this, make sure the type starts with \
1408+
@{<info>[>@} instead of @{<info>[@}\n\
14091409
\ - Or add the missing %s to it."
14101410
constructors_txt print_tags fields constructors_txt
14111411
| (_ :: _ as fields), _, [], true ->
@@ -1420,8 +1420,8 @@ let explanation unif t3 t4 ppf =
14201420
@,\
14211421
Possible solutions:\n\
14221422
\ - Either make the second variant @{<info>open@} so it can accept \
1423-
constructors it hasn't listed itself. To do this, make sure the type \
1424-
starts with @{<info>[>@} instead of @{<info>[@}\n\
1423+
additional constructors. To do this, make sure the type starts with \
1424+
@{<info>[>@} instead of @{<info>[@}\n\
14251425
\ - Or add the missing %s to it."
14261426
constructors_txt print_tags fields constructors_txt
14271427
| [(l1, _)], true, [(l2, _)], true when l1 = l2 ->

tests/build_tests/super_errors/expected/polyvariant_constructors_mismatch_second.res.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
The second polymorphic variant is closed and doesn't include the constructor: #Resize.
1414

1515
Possible solutions:
16-
- Either make the second variant open so it can accept constructors it hasn't listed itself. To do this, make sure the type starts with [> instead of [
16+
- Either make the second variant open so it can accept additional constructors. To do this, make sure the type starts with [> instead of [
1717
- Or add the missing constructor to it.

tests/build_tests/super_errors/expected/polyvariant_name_formatting.res.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
The second polymorphic variant is closed and doesn't include the constructor: #Invalid.
1515

1616
Possible solutions:
17-
- Either make the second variant open so it can accept constructors it hasn't listed itself. To do this, make sure the type starts with [> instead of [
17+
- Either make the second variant open so it can accept additional constructors. To do this, make sure the type starts with [> instead of [
1818
- Or add the missing constructor to it.

0 commit comments

Comments
 (0)