Skip to content

Commit

Permalink
no Stdlib < 4.07
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetiot committed Apr 21, 2020
1 parent 82f3720 commit 6973351
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Source.ml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ let create s = s
let rec substr_smaller_index t ~pattern =
let pattern =
if String.length pattern > String.length t then
Stdlib.String.sub pattern 0 (String.length t)
Caml.String.sub pattern 0 (String.length t)
else pattern
in
match pattern with
Expand All @@ -28,8 +28,7 @@ let rec substr_smaller_index t ~pattern =
| Some idx -> Some idx
| None ->
substr_smaller_index t
~pattern:(Stdlib.String.sub pattern 0 (String.length pattern - 1))
)
~pattern:(Caml.String.sub pattern 0 (String.length pattern - 1)) )

let indentation_of_index t idx =
if idx < 0 then None
Expand Down

0 comments on commit 6973351

Please sign in to comment.