From 7d3fd8a45a799bc3e764a5dc93a09c7e1d7b58e9 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Mon, 15 Dec 2014 10:27:08 +0100 Subject: [PATCH] fix errors in documentation of CCString (slightly over-reaching sed) --- core/CCString.mli | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/CCString.mli b/core/CCString.mli index 5012d517..307ff7c3 100644 --- a/core/CCString.mli +++ b/core/CCString.mli @@ -75,16 +75,15 @@ val of_array : char array -> string val to_array : string -> char array val find : ?start:int -> sub:string -> string -> int -(** Find [sub] in stringhe string, returns its first index or -1. +(** Find [sub] in string, returns its first index or [-1]. Should only be used with very small [sub] *) val is_sub : sub:string -> int -> string -> int -> len:int -> bool -(** [is_sub ~sub i s j ~len] returns [true] iff stringhe substring of - [sub] starting at position [i] and of length [len], - is a substring of [s] starting at position [j] *) +(** [is_sub ~sub i s j ~len] returns [true] iff the substring of + [sub] starting at position [i] and of length [len] *) val repeat : string -> int -> string -(** The same string, repeated n stringimes *) +(** The same string, repeated n times *) val prefix : pre:string -> string -> bool (** [str_prefix ~pre s] returns [true] iff [pre] is a prefix of [s] *)