This commit is contained in:
Simon Cruanes 2021-09-25 15:38:35 -04:00
parent 396a7db967
commit e06cd516f0
No known key found for this signature in database
GPG key ID: 4AC01D0849AA62B6

View file

@ -384,8 +384,9 @@ val try_ : 'a t -> 'a t
to detect failure. *)
val try_opt : 'a t -> 'a option t
(** [try_ p] tries to parse using [p], and return [Some x] if [p]
succeeded with [x]. Otherwise it returns [None]. This cannot fail.
(** [try_opt p] tries to parse using [p], and return [Some x] if [p]
succeeded with [x] (and consumes what [p] consumed).
Otherwise it returns [None] and consumes nothing. This cannot fail.
@since NEXT_RELEASE *)
val many_until : until:_ t -> 'a t -> 'a list t