summaryrefslogtreecommitdiffstats
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/buffer.mli2
-rw-r--r--stdlib/hashtbl.mli4
2 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/buffer.mli b/stdlib/buffer.mli
index 1f9728d94..1a2866704 100644
--- a/stdlib/buffer.mli
+++ b/stdlib/buffer.mli
@@ -20,7 +20,7 @@
type t
(* The abstract type of buffers. *)
-val create : int -> t
+val create : size:int -> t
(* [create n] returns a fresh buffer, initially empty.
The [n] parameter is the initial size of the internal string
that holds the buffer contents. That string is automatically
diff --git a/stdlib/hashtbl.mli b/stdlib/hashtbl.mli
index ad8e6b9e1..9364edac9 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