update deprecation comments

This commit is contained in:
Simon Cruanes 2015-09-11 09:29:31 +02:00
parent d8931e3602
commit 6c0378e16f
3 changed files with 4 additions and 7 deletions

View file

@ -79,7 +79,7 @@ val random_range : t -> t -> t random_gen
val sign : t -> int val sign : t -> int
(** [sign t] is one of [-1, 0, 1], depending on how the float (** [sign t] is one of [-1, 0, 1], depending on how the float
compares to [0.] compares to [0.]
@deprecated use {! fsign} or {!sign_exn} since it's more accurate *) @deprecated since 0.7 use {! fsign} or {!sign_exn} since it's more accurate *)
val fsign : t -> float val fsign : t -> float
(** [fsign x] is one of [-1., -0., +0., +1.], or [nan] if [x] is NaN. (** [fsign x] is one of [-1., -0., +0., +1.], or [nan] if [x] is NaN.

View file

@ -143,14 +143,14 @@ val find_map : ('a -> 'b option) -> 'a t -> 'b option
@since 0.11 *) @since 0.11 *)
val find : ('a -> 'b option) -> 'a list -> 'b option val find : ('a -> 'b option) -> 'a list -> 'b option
(** @deprecated in favor of {!find_map}, for the name is too confusing *) (** @deprecated since 0.11 in favor of {!find_map}, for the name is too confusing *)
val find_mapi : (int -> 'a -> 'b option) -> 'a t -> 'b option val find_mapi : (int -> 'a -> 'b option) -> 'a t -> 'b option
(** Like {!find_map}, but also pass the index to the predicate function. (** Like {!find_map}, but also pass the index to the predicate function.
@since 0.11 *) @since 0.11 *)
val findi : (int -> 'a -> 'b option) -> 'a t -> 'b option val findi : (int -> 'a -> 'b option) -> 'a t -> 'b option
(** @deprecated in favor of {!find_mapi}, name is too confusing (** @deprecated since 0.11 in favor of {!find_mapi}, name is too confusing
@since 0.3.4 *) @since 0.3.4 *)
val find_idx : ('a -> bool) -> 'a t -> (int * 'a) option val find_idx : ('a -> bool) -> 'a t -> (int * 'a) option

View file

@ -23,10 +23,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*) *)
(** {1 S-expressions Parser} (** {1 S-expressions Parser} *)
@since 0.4
@deprecated consider using {!CCSexpM} *)
type 'a or_error = [ `Ok of 'a | `Error of string ] type 'a or_error = [ `Ok of 'a | `Error of string ]
type 'a sequence = ('a -> unit) -> unit type 'a sequence = ('a -> unit) -> unit