doc: add details to CCResult.of_opt

This commit is contained in:
Fardale 2022-08-05 21:37:43 +02:00
parent 43f82d7668
commit 4e2f9220dd

View file

@ -263,7 +263,7 @@ val to_opt : ('a, _) t -> 'a option
(** Convert a result to an option. *) (** Convert a result to an option. *)
val of_opt : 'a option -> ('a, string) t val of_opt : 'a option -> ('a, string) t
(** Convert an option to a result. *) (** [of_opt opt] converts [Some v] to [Ok v] and [None] to [Error "of_opt"].*)
val to_iter : ('a, _) t -> 'a iter val to_iter : ('a, _) t -> 'a iter
(** @since 2.8 *) (** @since 2.8 *)