Skip to content

Commit 0cc857f

Browse files
committed
Apply my own comment again.
1 parent d367273 commit 0cc857f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/core/extra.ml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,14 +240,13 @@ module List =
240240
in in_sorted
241241

242242
(** [insert cmp x l] inserts [x] in the list [l] assuming that [l] is
243-
sorted wrt [cmp]. *)
243+
sorted wrt [cmp]. *)
244244
let insert : 'a cmp -> 'a -> 'a list -> 'a list = fun cmp x ->
245245
let rec insert acc l =
246246
match l with
247-
| y :: m when cmp x y > 0 -> insert (y::acc) m
248-
| _ -> List.rev_append acc (x::l)
247+
| y :: l when cmp x y > 0 -> insert (y::acc) l
248+
| _ -> List.rev_append acc (x::l)
249249
in insert []
250-
251250
end
252251

253252
module Array =

0 commit comments

Comments
 (0)