Skip to content

Commit

Permalink
Fix documentation for Result.bind: return [f v] and not [Ok (f v)] (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
thierry-martinez authored and shindere committed Mar 14, 2019
1 parent 2bc5de1 commit 390f054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/result.mli
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ val get_error : ('a, 'e) result -> 'e
otherwise. *)

val bind : ('a, 'e) result -> ('a -> ('b, 'e) result) -> ('b, 'e) result
(** [bind r f] is [Ok (f v)] if [r] is [Ok v] and [r] if [r] is [Error _]. *)
(** [bind r f] is [f v] if [r] is [Ok v] and [r] if [r] is [Error _]. *)

val join : (('a, 'e) result, 'e) result -> ('a, 'e) result
(** [join rr] is [r] if [rr] is [Ok r] and [rr] if [rr] is [Error _]. *)
Expand Down

0 comments on commit 390f054

Please sign in to comment.