summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Ojeda Bär <n.oje.bar@gmail.com>2019-09-06 16:22:18 +0200
committerGitHub <noreply@github.com>2019-09-06 16:22:18 +0200
commit2ca107c28bcffc87341af53f34d28449c05f09b9 (patch)
tree9bf3b122ad18548c1608130fcc15a50a31bb86af
parent30fbae7265675a8765c327d1710140e1f68d0f59 (diff)
parentfe9f2ad6ec8a5b39a12b61ce8cf80adca5da0713 (diff)
downloadocaml-2ca107c28bcffc87341af53f34d28449c05f09b9.tar.gz
Merge pull request #8923 from thomasblanc/fix-typo
Fix typos in Bytes documentation
-rw-r--r--stdlib/bytes.mli6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/bytes.mli b/stdlib/bytes.mli
index 1016c685d0..08b5fd5487 100644
--- a/stdlib/bytes.mli
+++ b/stdlib/bytes.mli
@@ -130,8 +130,8 @@ val blit : bytes -> int -> bytes -> int -> int -> unit
do not designate a valid range of [dst]. *)
val blit_string : string -> int -> bytes -> int -> int -> unit
-(** [blit src srcoff dst dstoff len] copies [len] bytes from string
- [src], starting at index [srcoff], to byte sequence [dst],
+(** [blit_string src srcoff dst dstoff len] copies [len] bytes from
+ string [src], starting at index [srcoff], to byte sequence [dst],
starting at index [dstoff].
Raise [Invalid_argument] if [srcoff] and [len] do not
@@ -218,7 +218,7 @@ val index_from : bytes -> int -> char -> int
Raise [Not_found] if [c] does not occur in [s] after position [i]. *)
val index_from_opt: bytes -> int -> char -> int option
-(** [index_from _opts i c] returns the index of the first occurrence of
+(** [index_from_opt s i c] returns the index of the first occurrence of
byte [c] in [s] after position [i] or [None] if [c] does not occur in [s]
after position [i].
[Bytes.index_opt s c] is equivalent to [Bytes.index_from_opt s 0 c].