aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel
diff options
context:
space:
mode:
authorGravatar filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7>2000-03-16 22:15:28 +0000
committerGravatar filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7>2000-03-16 22:15:28 +0000
commit629ac006253938d252529edb56dd2442e8e6b76f (patch)
tree177204f16da3e19737c6546b031562ea43eb2af1 /kernel
parent42e92f663848838515ac0ed86e65a94a91ade26b (diff)
mauvais parenthesage dans hd_name (patterns imbriques)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@317 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel')
-rw-r--r--kernel/environ.ml12
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/environ.ml b/kernel/environ.ml
index b98b29309..e203af98e 100644
--- a/kernel/environ.ml
+++ b/kernel/environ.ml
@@ -175,12 +175,12 @@ let hdchar env c =
| VAR id -> lowercase_first_char id
| DOP0(Sort s) -> sort_hdchar s
| Rel n ->
- if n<=k then "p" (* the initial term is flexible product/function *)
- else
- try match lookup_rel (n-k) env with
- | Name id,_ -> lowercase_first_char id
- | Anonymous,t -> hdrec 0 (lift (n-k) (body_of_type t))
- with Not_found -> "y"
+ (if n<=k then "p" (* the initial term is flexible product/function *)
+ else
+ try match lookup_rel (n-k) env with
+ | Name id,_ -> lowercase_first_char id
+ | Anonymous,t -> hdrec 0 (lift (n-k) (body_of_type t))
+ with Not_found -> "y")
| _ -> "y"
in
hdrec 0 c