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
master
Alain Frisch 2014-07-28 16:14:44 +00:00
parent aeead32662
commit 68fe1ebd5a
2 changed files with 2 additions and 2 deletions

View File

@ -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].

View File

@ -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].