Skip to content

Commit 11fcb3e

Browse files
authored
fix mapWithDefault example
1 parent 5e49799 commit 11fcb3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jscomp/others/belt_Result.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ val mapWithDefault : ('a, 'c) t -> 'b -> ('a -> 'b) -> 'b
6767
When [res] is [Ok n], returns [f n], otherwise [default].
6868
6969
@example{[
70-
mapWithDefault good 0 (function x -> x / 2) = 21
71-
mapWithDefault bad 0 (function x -> x / 2) = 0
70+
mapWithDefault good 0 (fun x -> x / 2) = 21
71+
mapWithDefault bad 0 (fun x -> x / 2) = 0
7272
]}
7373
*)
7474

0 commit comments

Comments
 (0)