diff options
author | Alain Frisch <alain@frisch.fr> | 2014-07-28 16:14:44 +0000 |
---|---|---|
committer | Alain Frisch <alain@frisch.fr> | 2014-07-28 16:14:44 +0000 |
commit | 68fe1ebd5a33636afd075419fa0362741f33f878 (patch) | |
tree | d8c793be08ef5537e273cab96e2476a04952684a | |
parent | aeead3266235b9aadaf492dc8247b0fc84bff61c (diff) |
Use labeled arguments. (Cherry-picked from commit 15031 on 4.02).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15032 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | stdlib/bytesLabels.mli | 2 | ||||
-rw-r--r-- | stdlib/stringLabels.mli | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/bytesLabels.mli b/stdlib/bytesLabels.mli index eb1a46070..23ccaf391 100644 --- a/stdlib/bytesLabels.mli +++ b/stdlib/bytesLabels.mli @@ -40,7 +40,7 @@ val make : int -> char -> bytes Raise [Invalid_argument] if [n < 0] or [n > ]{!Sys.max_string_length}. *) -val init : int -> (int -> char) -> bytes +val init : int -> f:(int -> char) -> bytes (** [init n f] returns a fresh byte sequence of length [n], with character [i] initialized to the result of [f i]. diff --git a/stdlib/stringLabels.mli b/stdlib/stringLabels.mli index 6ff413e37..dcef6db03 100644 --- a/stdlib/stringLabels.mli +++ b/stdlib/stringLabels.mli @@ -46,7 +46,7 @@ val make : int -> char -> string Raise [Invalid_argument] if [n < 0] or [n > ]{!Sys.max_string_length}. *) -val init : int -> (int -> char) -> string +val init : int -> f:(int -> char) -> string (** [init n f] returns a string of length [n], with character [i] initialized to the result of [f i]. |