Skip to content

Commit

Permalink
Cookbook Sorting - typo (#2118)
Browse files Browse the repository at this point in the history
Co-authored-by: Frédéric LOYER <frederic.loyer@club-internet.fr>
  • Loading branch information
2 people authored and Cuihtlauac ALVARADO committed Apr 5, 2024
1 parent b1811d0 commit f8851b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/cookbook/sorting/sorting/00-stdlib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Defining a custom `compare` function (here a case insensitive string comparison)
let compare_insensitive a b =
compare (String.lowercase_ascii a) (String.lowercase_ascii b)
let a = [| "ABC"; "BCD"; "abc"; "bcd" |]
let () = Array.compare_insensitive a
let () = Array.sort compare_insensitive a

0 comments on commit f8851b8

Please sign in to comment.