mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
some typos in unlabel
This commit is contained in:
parent
197b4e7f1b
commit
ef8d19ac65
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ let search_all pat s =
|
|||
List.rev (search_rest [] 0)
|
||||
;;
|
||||
|
||||
(* replase first occurence of pat with subst in s *)
|
||||
(* replace first occurrence of pat with subst in s *)
|
||||
let replace_first pat subst s =
|
||||
let pos = search pat s 0 in
|
||||
let patl = String.length pat
|
||||
|
|
@ -43,7 +43,7 @@ let replace_first pat subst s =
|
|||
Bytes.unsafe_to_string buf
|
||||
;;
|
||||
|
||||
(* replase first occurence of pat with subst in s *)
|
||||
(* replace all occurrences of pat with subst in s *)
|
||||
let replace_all pat subst s =
|
||||
let pos = search_all pat s in
|
||||
let patl = String.length pat
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue