add labels to BytesLabels.sub_string (#1353)

master
Jacques Garrigue 2017-09-19 20:50:53 +09:00
parent 39072e97bc
commit 0cb45a611f
2 changed files with 3 additions and 1 deletions

View File

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

View File

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