summaryrefslogtreecommitdiff
path: root/ocamldoc/odoc_man.ml
diff options
context:
space:
mode:
authorPierre Weis <Pierre.Weis@inria.fr>2007-10-09 10:29:37 +0000
committerPierre Weis <Pierre.Weis@inria.fr>2007-10-09 10:29:37 +0000
commit59e0723455fc8b847a1303bfc73db5968d666eee (patch)
tree29b21992d5428948131f66b950ec4e8ed48f0166 /ocamldoc/odoc_man.ml
parent00f4865bad9838add05d832a05b19fb68da47043 (diff)
downloadocaml-59e0723455fc8b847a1303bfc73db5968d666eee.tar.gz
It works: compilers and camlp4 are fully bootstrapped. The ast magic number is not yet changed.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8418 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'ocamldoc/odoc_man.ml')
-rw-r--r--ocamldoc/odoc_man.ml6
1 files changed, 4 insertions, 2 deletions
diff --git a/ocamldoc/odoc_man.ml b/ocamldoc/odoc_man.ml
index b77439f6eb..eb2a1bac41 100644
--- a/ocamldoc/odoc_man.ml
+++ b/ocamldoc/odoc_man.ml
@@ -410,17 +410,19 @@ class man =
);
bs b (Name.simple t.ty_name);
bs b " \n";
+ let priv = t.ty_private = Asttypes.Private in
(
match t.ty_manifest with
None -> ()
| Some typ ->
bs b "= ";
+ if priv then bs b "private ";
self#man_of_type_expr b father typ
);
(
match t.ty_kind with
Type_abstract -> ()
- | Type_variant (l, priv) ->
+ | Type_variant l ->
bs b "=";
if priv then bs b " private";
bs b "\n ";
@@ -448,7 +450,7 @@ class man =
)
)
l
- | Type_record (l, priv) ->
+ | Type_record l ->
bs b "= ";
if priv then bs b "private ";
bs b "{";