Skip to content

Commit 8c13179

Browse files
committed
change fn name
1 parent e3a2b95 commit 8c13179

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/ml/ast_untagged_variants.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ type tag = {name: string; tag_type: tag_type option}
100100
type block = {tag: tag; tag_name: string option; block_type: block_type option}
101101
type switch_names = {consts: tag array; blocks: block array}
102102

103-
let tag_type_to_type_string = function
103+
let tag_type_to_string = function
104104
| String _ -> "string"
105105
| Int _ -> "int"
106106
| Float _ -> "float"

compiler/ml/printtyp.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ let print_variant_runtime_representation_issue ppf variant_name
15501550
@{<info>%s@}, which is not compatible with the expected of \
15511551
@{<info>%s@}."
15521552
constructor_name (Path.name variant_name)
1553-
(Ast_untagged_variants.tag_type_to_type_string as_payload)
1553+
(Ast_untagged_variants.tag_type_to_string as_payload)
15541554
(Path.name expected_typename)
15551555
| Mismatched_unboxed_payload _ -> ()
15561556
| Mismatched_as_payload {constructor_name; expected_typename; as_payload} ->
@@ -1565,7 +1565,7 @@ let print_variant_runtime_representation_issue ppf variant_name
15651565
fprintf ppf
15661566
"an @{<info>@as@} payload that gives it the runtime type of \
15671567
@{<info>%s@}."
1568-
(Ast_untagged_variants.tag_type_to_type_string payload));
1568+
(Ast_untagged_variants.tag_type_to_string payload));
15691569
fprintf ppf
15701570
"@ That runtime representation is not compatible with the expected \
15711571
runtime representation of @{<info>%s@}."

0 commit comments

Comments
 (0)