Skip to content

Commit f86537c

Browse files
authored
Update belt_Result.ml
1 parent 9b55b6e commit f86537c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jscomp/others/belt_Result.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ let mapWithDefaultU opt default f = match opt with
3838
let mapWithDefault opt default f = mapWithDefaultU opt default (fun[@bs] x -> f x)
3939

4040
let mapU opt f = match opt with
41-
| Ok x -> Some (f x [@bs])
41+
| Ok x -> Ok (f x [@bs])
4242
| Error y -> Error y
4343

4444
let map opt f = mapU opt (fun[@bs] x -> f x)

0 commit comments

Comments
 (0)