summaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authoralainfrisch <alain@frisch.fr>2016-07-11 14:50:56 +0200
committeralainfrisch <alain@frisch.fr>2016-07-11 14:50:56 +0200
commitd88ac0ac7d2e6eccd3d393d92f9e7b52c6de9ed3 (patch)
treef9e2c6d524d40d255cd93618eae754fb92a1cd85 /stdlib
parent2c96a267dc3bf715d64aa134c031602d398d90ab (diff)
downloadocaml-d88ac0ac7d2e6eccd3d393d92f9e7b52c6de9ed3.tar.gz
Rename String.split to String.split_on_char (#626).
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/string.ml2
-rw-r--r--stdlib/string.mli2
2 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/string.ml b/stdlib/string.ml
index 3290283371..ac2253cd92 100644
--- a/stdlib/string.ml
+++ b/stdlib/string.ml
@@ -127,7 +127,7 @@ type t = string
let compare (x: t) (y: t) = Pervasives.compare x y
external equal : string -> string -> bool = "caml_string_equal"
-let split sep s =
+let split_on_char sep s =
let r = ref [] in
let j = ref (length s) in
for i = length s - 1 downto 0 do
diff --git a/stdlib/string.mli b/stdlib/string.mli
index 11dd70205b..22f1121d25 100644
--- a/stdlib/string.mli
+++ b/stdlib/string.mli
@@ -282,7 +282,7 @@ val equal: t -> t -> bool
(** The equal function for strings.
@since 4.03.0 *)
-val split: char -> string -> string list
+val split_on_char: char -> string -> string list
(** [String.split sep s] returns the list of all (possibly empty)
substrings of [s] that are delimited by the [sep] character.