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-0dff7051ff02master
parent
aeead32662
commit
68fe1ebd5a
|
@ -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].
|
||||
|
||||
|
|
|
@ -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].
|
||||
|
||||
|
|
Loading…
Reference in New Issue