aboutsummaryrefslogtreecommitdiffhomepage
path: root/printing
diff options
context:
space:
mode:
authorGravatar xclerc <xclerc@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-09-19 12:59:04 +0000
committerGravatar xclerc <xclerc@85f007b7-540e-0410-9357-904b9bb8a0f7>2013-09-19 12:59:04 +0000
commit826eb7c6d11007dfd747d49852e71a22e0a3850a (patch)
tree25dce16a7107de4e0d3903e2808fb8f083d1f9ea /printing
parent33eea163c72c70eaa3bf76506c1d07a8cde911fd (diff)
Get rid of the uses of deprecated OCaml elements (still remaining compatible with OCaml 3.12.1).
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16787 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'printing')
-rw-r--r--printing/prettyp.ml2
-rw-r--r--printing/printer.ml2
2 files changed, 2 insertions, 2 deletions
diff --git a/printing/prettyp.ml b/printing/prettyp.ml
index 0f6a5e893..0e0480836 100644
--- a/printing/prettyp.ml
+++ b/printing/prettyp.ml
@@ -126,7 +126,7 @@ let need_expansion impl ref =
let typ = Global.type_of_global ref in
let ctx = prod_assum typ in
let nprods = List.length (List.filter (fun (_,b,_) -> Option.is_empty b) ctx) in
- not (List.is_empty impl) && List.length impl >= nprods &
+ not (List.is_empty impl) && List.length impl >= nprods &&
let _,lastimpl = List.chop nprods impl in
List.exists is_status_implicit lastimpl
diff --git a/printing/printer.ml b/printing/printer.ml
index 19dd81dcd..0e5d6721e 100644
--- a/printing/printer.ml
+++ b/printing/printer.ml
@@ -778,7 +778,7 @@ let print_record env mind mib =
pr_univ_cstr mib.mind_constraints)
let pr_mutual_inductive_body env mind mib =
- if mib.mind_record & not !Flags.raw_print then
+ if mib.mind_record && not !Flags.raw_print then
print_record env mind mib
else
print_mutual_inductive env mind mib