From 70703b351235b563f060ef494461e678e896da49 Mon Sep 17 00:00:00 2001 From: Fardale Date: Thu, 12 May 2022 11:19:47 +0200 Subject: [PATCH] fix: add since tag for Array.map_inplace --- src/core/CCArray.mli | 3 ++- src/core/CCArrayLabels.mli | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/CCArray.mli b/src/core/CCArray.mli index d6b496c6..25c8d32a 100644 --- a/src/core/CCArray.mli +++ b/src/core/CCArray.mli @@ -59,7 +59,8 @@ val get_safe : 'a t -> int -> 'a option @since 0.18 *) val map_inplace : ('a -> 'a) -> 'a t -> unit -(** [map_inplace f a] replace all elements of [a] by its image by [f]. *) +(** [map_inplace f a] replace all elements of [a] by its image by [f]. + @since NEXT_RELEASE *) val fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a (** [fold f init a] computes [f (… (f (f init a.(0)) a.(1)) …) a.(n-1)], diff --git a/src/core/CCArrayLabels.mli b/src/core/CCArrayLabels.mli index b9c5b1b6..735950f1 100644 --- a/src/core/CCArrayLabels.mli +++ b/src/core/CCArrayLabels.mli @@ -60,7 +60,8 @@ val get_safe : 'a t -> int -> 'a option @since 0.18 *) val map_inplace : f:('a -> 'a) -> 'a t -> unit -(** [map_inplace ~f a] replace all elements of [a] by its image by [f]. *) +(** [map_inplace ~f a] replace all elements of [a] by its image by [f]. + @since NEXT_RELEASE *) val fold : f:('a -> 'b -> 'a) -> init:'a -> 'b t -> 'a (** [fold ~f ~init a] computes [f (… (f (f init a.(0)) a.(1)) …) a.(n-1)],