Skip to content

Commit

Permalink
Fix an annotation in lens.ml
Browse files Browse the repository at this point in the history
  • Loading branch information
eilvelia committed Oct 24, 2023
1 parent 767d400 commit efa0303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lens.ml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ open struct

let find_and_replace_node nth annot name x' list =
let found = ref false in
let[@tailrec_mod_cons] rec go n = function
let[@tail_mod_cons] rec go n = function
| [] -> []
| x :: xs when matches_node ?annot name x ->
if n <= 0 then (found := true; x' :: xs) else x :: go (n - 1) xs
Expand Down

0 comments on commit efa0303

Please sign in to comment.