aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toplevel/coqtop.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/toplevel/coqtop.ml b/toplevel/coqtop.ml
index 631f8f88cd..d220036379 100644
--- a/toplevel/coqtop.ml
+++ b/toplevel/coqtop.ml
@@ -68,7 +68,7 @@ let set_outputstate s = outputstate:=s
let outputstate () = if !outputstate <> "" then extern_state !outputstate
let check_coq_overwriting p =
- if string_of_id (List.hd (repr_dirpath p)) = "Coq" then
+ if string_of_id (list_last (repr_dirpath p)) = "Coq" then
error "The \"Coq\" logical root directory is reserved for the Coq library"
let set_include d p = push_include (d,p)