Skip to content

Commit 781ad87

Browse files
committed
belt_Option exists -> has
1 parent 8e2f870 commit 781ad87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

jscomp/others/belt_Option.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let getOrElse opt default = match opt with
1818
| Some x -> x
1919
| None -> default
2020

21-
let exists = function
21+
let has = function
2222
| Some _ -> true
2323
| None -> false
2424

jscomp/others/belt_Option.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ val fold : 'a option -> 'b -> ('a -> 'b) -> 'b
33
val map : 'a option -> ('a -> 'b) -> 'b option
44
val flatMap : 'a option -> ('a -> 'b option) -> 'b option
55
val getOrElse : 'a option -> 'a -> 'a
6-
val exists : 'a option -> bool
6+
val has : 'a option -> bool
77
val isEmpty : 'a option -> bool

0 commit comments

Comments
 (0)