mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 19:25:28 -05:00
deprecate CCBool.negate
This commit is contained in:
parent
609d51c89e
commit
b7b6bd19a3
2 changed files with 3 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ let equal (a:bool) b = a=b
|
||||||
|
|
||||||
let compare (a:bool) b = Pervasives.compare a b
|
let compare (a:bool) b = Pervasives.compare a b
|
||||||
|
|
||||||
let negate x = not x
|
let negate = not
|
||||||
|
|
||||||
type 'a printer = Format.formatter -> 'a -> unit
|
type 'a printer = Format.formatter -> 'a -> unit
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@ val compare : t -> t -> int
|
||||||
val equal : t -> t -> bool
|
val equal : t -> t -> bool
|
||||||
|
|
||||||
val negate : t -> t
|
val negate : t -> t
|
||||||
(** Negation on booleans (functional version of [not]) *)
|
(** Negation on booleans (functional version of [not])
|
||||||
|
@deprecate since NEXT_RELEASE, simply use {!not} instead *)
|
||||||
|
|
||||||
type 'a printer = Format.formatter -> 'a -> unit
|
type 'a printer = Format.formatter -> 'a -> unit
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue