aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2004-09-03 15:05:54 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2004-09-03 15:05:54 +0000
commit31ebb89fe48efe92786b1cddc3ba62e7dfc4e739 (patch)
treea85feb10b62fce1077e4bed68caa1a0969a6ed36
parent57282991730ee2e864c11868d2498da8aa9eb88b (diff)
Bug List.hd vs list_last
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@6056 85f007b7-540e-0410-9357-904b9bb8a0f7
-rw-r--r--toplevel/coqtop.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/toplevel/coqtop.ml b/toplevel/coqtop.ml
index 631f8f88c..d22003637 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)