We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43f82d7 commit 4e2f922Copy full SHA for 4e2f922
src/core/CCResult.mli
@@ -263,7 +263,7 @@ val to_opt : ('a, _) t -> 'a option
263
(** Convert a result to an option. *)
264
265
val of_opt : 'a option -> ('a, string) t
266
-(** Convert an option to a result. *)
+(** [of_opt opt] converts [Some v] to [Ok v] and [None] to [Error "of_opt"].*)
267
268
val to_iter : ('a, _) t -> 'a iter
269
(** @since 2.8 *)
0 commit comments