mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-05 19:00:31 -05:00
doc: add details to CCResult.of_opt
This commit is contained in:
parent
43f82d7668
commit
4e2f9220dd
1 changed files with 1 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ val to_opt : ('a, _) t -> 'a option
|
|||
(** Convert a result to an option. *)
|
||||
|
||||
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
|
||||
(** @since 2.8 *)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue