Skip to content

Commit

Permalink
Replaced use of StringLabels
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenldl committed Dec 8, 2023
1 parent 99db185 commit 61031fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion timedesc/RFC9110_parsers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let month_p : int Angstrom.t =
if String.length s < 3 then
fail (Printf.sprintf "Invalid month: %s" s)
else (
(match String.lowercase_ascii @@ StringLabels.sub ~pos:0 ~len:3 s with
(match String.lowercase_ascii @@ String.sub s 0 3 with
| "jan" -> return 1
| "feb" -> return 2
| "mar" -> return 3
Expand Down
2 changes: 1 addition & 1 deletion timedesc/timedesc.mli
Original file line number Diff line number Diff line change
Expand Up @@ -2192,7 +2192,7 @@ module Utils : sig
You are advised to read the source code of the following functions in [date_time_utils.ml] if you intend to use them
to ensure they behave as you expect.
*)
*)

val is_leap_year : year:int -> bool

Expand Down

0 comments on commit 61031fb

Please sign in to comment.