summaryrefslogtreecommitdiff
path: root/stdlib/hashtbl.mli
diff options
context:
space:
mode:
authorJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2000-02-26 13:30:26 +0000
committerJacques Garrigue <garrigue at math.nagoya-u.ac.jp>2000-02-26 13:30:26 +0000
commit54467b98f528f1f908f63b859447d9fc97775cfe (patch)
treeed195d3ba9e734d4105df6acd2846b5dd4f24698 /stdlib/hashtbl.mli
parentef938a78783d07d4c19cf55de1d7e72bd1f00900 (diff)
downloadocaml-54467b98f528f1f908f63b859447d9fc97775cfe.tar.gz
ajout du label size: pour Hashtbl.create et Buffer.create
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2870 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/hashtbl.mli')
-rw-r--r--stdlib/hashtbl.mli4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/hashtbl.mli b/stdlib/hashtbl.mli
index ad8e6b9e11..9364edac95 100644
--- a/stdlib/hashtbl.mli
+++ b/stdlib/hashtbl.mli
@@ -21,7 +21,7 @@
type ('a, 'b) t
(* The type of hash tables from type ['a] to type ['b]. *)
-val create : int -> ('a,'b) t
+val create : size:int -> ('a,'b) t
(* [Hashtbl.create n] creates a new, empty hash table, with
initial size [n]. For best results, [n] should be on the
order of the expected number of elements that will be in
@@ -88,7 +88,7 @@ module type S =
sig
type key
type 'a t
- val create: int -> 'a t
+ val create: size:int -> 'a t
val clear: 'a t -> unit
val add: 'a t -> key:key -> data:'a -> unit
val remove: 'a t -> key:key -> unit