From 0cb45a611f9a46be2d25b86b043f2265c60d9d21 Mon Sep 17 00:00:00 2001 From: Jacques Garrigue Date: Tue, 19 Sep 2017 20:50:53 +0900 Subject: [PATCH] add labels to BytesLabels.sub_string (#1353) --- Changes | 2 ++ stdlib/bytesLabels.mli | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 2b396a02a..e6ac83291 100644 --- a/Changes +++ b/Changes @@ -1806,6 +1806,8 @@ OCaml 4.04.0 (4 Nov 2016): - GPR#880: Fix [@@inline] with default parameters in flambda (Leo White) +* GPR#1353: add labels to BytesLabels.sub_string (Jacques Garrigue) + ### Internal/compiler-libs changes: - PR#7200, GPR#539: Improve, fix, and add test for parsing/pprintast.ml diff --git a/stdlib/bytesLabels.mli b/stdlib/bytesLabels.mli index 9848f32d7..35399832d 100644 --- a/stdlib/bytesLabels.mli +++ b/stdlib/bytesLabels.mli @@ -73,7 +73,7 @@ val sub : bytes -> pos:int -> len:int -> bytes Raise [Invalid_argument] if [start] and [len] do not designate a valid range of [s]. *) -val sub_string : bytes -> int -> int -> string +val sub_string : bytes -> pos:int -> len:int -> string (** Same as [sub] but return a string instead of a byte sequence. *) val extend : bytes -> left:int -> right:int -> bytes