From 312901550f70a6740e730fff1599bf357d8774de Mon Sep 17 00:00:00 2001 From: nathan moreau Date: Thu, 1 Feb 2018 22:22:13 +0100 Subject: [PATCH] Style - small corrections --- src/core/CCArray.mli | 3 ++- src/core/CCArrayLabels.mli | 2 +- src/core/CCFormat.mli | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/CCArray.mli b/src/core/CCArray.mli index 2e54a396..4fe5d32d 100644 --- a/src/core/CCArray.mli +++ b/src/core/CCArray.mli @@ -74,7 +74,8 @@ val fold_map : ('acc -> 'a -> 'acc * 'b) -> 'acc -> 'a t -> 'acc * 'b t val scan_left : ('acc -> 'a -> 'acc) -> 'acc -> 'a t -> 'acc t (** [scan_left f acc a] returns the array - [ [|acc; f acc x0; f (f acc a.(0)) a.(1); ...|] ]. + [ [|acc; f acc x0; f (f acc a.(0)) a.(1); …|] ]. + @since 1.2 *) val iter : ('a -> unit) -> 'a t -> unit diff --git a/src/core/CCArrayLabels.mli b/src/core/CCArrayLabels.mli index 21befed7..05c1895c 100644 --- a/src/core/CCArrayLabels.mli +++ b/src/core/CCArrayLabels.mli @@ -139,7 +139,7 @@ val bsearch : cmp:('a -> 'a -> int) -> key:'a -> 'a t -> [ `All_lower | `All_bigger | `Just_after of int | `Empty | `At of int ] (** [bsearch ?cmp key arr] finds the index of the object [key] in the array [arr], provided [arr] is {b sorted} using [cmp]. If the array is not sorted, - the result is not specified (may @raise Invalid_argument). + the result is not specified (may raise Invalid_argument). Complexity: [O(log n)] where n is the length of the array (dichotomic search). diff --git a/src/core/CCFormat.mli b/src/core/CCFormat.mli index fb74127c..6430bc93 100644 --- a/src/core/CCFormat.mli +++ b/src/core/CCFormat.mli @@ -106,9 +106,9 @@ val return : ('a, _, _, 'a) format4 -> unit printer (** [return "some_format_string"] takes a argument-less format string and returns a printer actionable by [()]. Examples: - - [return ",@ "]. - - [return "@{and then@}@,"]. - - [return "@[a@ b@]"]. + - [return ",@ "] + - [return "@{and then@}@,"] + - [return "@[a@ b@]"] @since 1.0 *)