Skip to content

Commit

Permalink
prepare for 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Feb 7, 2023
1 parent d249ce5 commit 161c192
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 3.11

- official OCaml 5 support
- add `CCFun.(let@)` (if OCaml >= 4.08)
- add `CCHet.Tbl.{clear,reset}`

- fix(CCVector): concurrent modification safety in `resize_with`
- fix(CCVector): always obtain a copy of array before using unsafe_{set,get}
- CI: add ocaml 5.0.x

## 3.10

- `CCArray`: add `mapi_inplace`
Expand Down
2 changes: 1 addition & 1 deletion containers-data.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "3.10"
version: "3.11"
author: "Simon Cruanes"
maintainer: "simon.cruanes.2007@m4x.org"
synopsis: "A set of advanced datatypes for containers"
Expand Down
2 changes: 1 addition & 1 deletion containers-thread.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
opam-version: "2.0"
version: "3.10"
version: "3.11"
author: "Simon Cruanes"
maintainer: "simon.cruanes.2007@m4x.org"
license: "BSD-2-Clause"
Expand Down
2 changes: 1 addition & 1 deletion containers.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
opam-version: "2.0"
name: "containers"
version: "3.10"
version: "3.11"
author: "Simon Cruanes"
maintainer: "simon.cruanes.2007@m4x.org"
license: "BSD-2-Clause"
Expand Down
2 changes: 1 addition & 1 deletion src/core/CCFun.mli
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ module Infix : sig
val ( let@ ) : ('a -> 'b) -> 'a -> 'b
(** [let@ x = foo in bar] is the equivalent of [foo @@ fun x -> bar].
It can be very useful for resource management, alongside with {!protect}.
@since NEXT_RELEASE *)
@since 3.11 *)

[@@@endif]
end
Expand Down
4 changes: 2 additions & 2 deletions src/data/CCHet.mli
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ module Tbl : sig

val clear : t -> unit
(** clear the table (like {!Hashtbl.clear})
@since NEXT_RELEASE *)
@since 3.11 *)

val reset : t -> unit
(** reset the table (like {!Hashtbl.reset})
@since NEXT_RELEASE *)
@since 3.11 *)

val find_exn : t -> 'a Key.t -> 'a
(** @raise Not_found if the key is not in the table. *)
Expand Down

0 comments on commit 161c192

Please sign in to comment.