summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vylist.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vylist.ml b/src/vylist.ml
index 9afea5f..3842076 100644
--- a/src/vylist.ml
+++ b/src/vylist.ml
@@ -12,7 +12,7 @@ let rec remove p xs =
let rec replace p x xs =
match xs with
- | [] -> []
+ | [] -> raise Not_found
| x' :: xs' -> if (p x') then x :: xs'
else x' :: (replace p x xs')