Skip to content

Commit 3fb483d

Browse files
committed
Rename
1 parent 863b647 commit 3fb483d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

interpreter/runtime/exn.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let alloc_exn tag vs =
1313
assert (ts2 = []);
1414
Exn (tag, vs)
1515

16-
let type_of_exn (Exn (tag, _)) =
16+
let type_of (Exn (tag, _)) =
1717
let TagT dt = Tag.type_of tag in
1818
dt
1919

@@ -27,7 +27,7 @@ let () =
2727
let () =
2828
let type_of_ref' = !Value.type_of_ref' in
2929
Value.type_of_ref' := function
30-
| ExnRef e -> DefHT (type_of_exn e)
30+
| ExnRef e -> DefHT (type_of e)
3131
| r -> type_of_ref' r
3232

3333
let () =

interpreter/runtime/exn.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ type ref_ += ExnRef of exn_
77

88
val alloc_exn : Tag.t -> value list -> exn_
99

10-
val type_of_exn : exn_ -> def_type
10+
val type_of : exn_ -> def_type

0 commit comments

Comments
 (0)