From 702ff20ca9cbe3cb5e7733bda2fedbc8dafd5756 Mon Sep 17 00:00:00 2001 From: JPR Date: Wed, 17 Jun 2020 00:51:50 +0200 Subject: [PATCH] Tweaks --- src/core/CCArray.mli | 2 +- src/core/CCList.mli | 2 +- src/core/CCListLabels.mli | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/CCArray.mli b/src/core/CCArray.mli index 144c92b8..cfa07e30 100644 --- a/src/core/CCArray.mli +++ b/src/core/CCArray.mli @@ -126,7 +126,7 @@ val lookup_exn : cmp:'a ord -> 'a -> 'a t -> int val bsearch : cmp:('a -> 'a -> int) -> 'a -> 'a t -> [ `All_lower | `All_bigger | `Just_after of int | `Empty | `At of int ] (** [bsearch ~cmp key a] finds the index of the object [key] in the array [a], - provided [a] is {b sorted} using [~cmp]. If the array is not sorted, + provided [a] is {b sorted} using [cmp]. If the array is not sorted, the result is not specified (may raise Invalid_argument). Complexity: [O(log n)] where n is the length of the array [a] diff --git a/src/core/CCList.mli b/src/core/CCList.mli index a223951a..0869ad91 100644 --- a/src/core/CCList.mli +++ b/src/core/CCList.mli @@ -746,7 +746,7 @@ val random_sequence : 'a random_gen t -> 'a t random_gen val to_string : ?start:string -> ?stop:string -> ?sep:string -> ('a -> string) -> 'a t -> string (** [to_string ?start ?stop ?sep item_to_string l] prints [l] to a string using - [?sep] as a separator between elements of [l]. + [sep] as a separator between elements of [l]. @since 2.7 *) val to_iter : 'a t -> 'a iter diff --git a/src/core/CCListLabels.mli b/src/core/CCListLabels.mli index 162e76a5..9e1837ad 100644 --- a/src/core/CCListLabels.mli +++ b/src/core/CCListLabels.mli @@ -675,7 +675,7 @@ val mem_assoc : ?eq:(('a -> 'a -> bool) [@keep_label]) -> 'a -> ('a * _) t -> bo (** [mem_assoc ?eq k alist] returns [true] iff [k] is a key in [alist]. Like [Assoc.mem]. @since 2.0 *) - + val remove_assoc : eq:(('a -> 'a -> bool) [@keep_label]) -> 'a -> ('a * 'b) t -> ('a * 'b) t (** [remove_assoc ~eq k alist] returns the [alist] without the first pair with key [k], if any. Like [Assoc.remove].