Skip to content

Commit 518bb75

Browse files
committed
update Stdlib_Bool and Stdlib_Char
1 parent b29c903 commit 518bb75

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

runtime/Pervasives.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Raises the given exception, terminating execution unless caught by a surrounding
3434
let error = Error.make("Everything is upside down.")
3535
3636
if 5 > 10 {
37-
throw(error)
37+
throw(error)
3838
} else {
3939
Console.log("Phew, sanity still rules.")
4040
}

runtime/Stdlib_Bool.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ let fromStringExn = param =>
1919
switch param {
2020
| "true" => true
2121
| "false" => false
22-
| _ => raise(Invalid_argument(`Bool.fromStringExn: value is neither "true" nor "false"`))
22+
| _ => throw(Invalid_argument(`Bool.fromStringExn: value is neither "true" nor "false"`))
2323
}
2424

2525
external compare: (bool, bool) => Stdlib_Ordering.t = "%compare"

runtime/Stdlib_Char.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ external fromIntUnsafe: int => t = "%identity"
1010

1111
let fromIntExn = n =>
1212
if n < 0 || n > 255 {
13-
raise(Invalid_argument("`Char.fromIntExn` expects an integer between 0 and 255"))
13+
throw(Invalid_argument("`Char.fromIntExn` expects an integer between 0 and 255"))
1414
} else {
1515
fromIntUnsafe(n)
1616
}

0 commit comments

Comments
 (0)