summaryrefslogtreecommitdiffstats
path: root/ocamldoc/odoc_to_text.ml
diff options
context:
space:
mode:
Diffstat (limited to 'ocamldoc/odoc_to_text.ml')
-rw-r--r--ocamldoc/odoc_to_text.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/ocamldoc/odoc_to_text.ml b/ocamldoc/odoc_to_text.ml
index d59a5bf1e..fedca03f9 100644
--- a/ocamldoc/odoc_to_text.ml
+++ b/ocamldoc/odoc_to_text.ml
@@ -401,7 +401,8 @@ class virtual to_text =
[Code (
match cco.cco_class with
None -> cco.cco_name
- | Some cl -> cl.cl_name
+ | Some (Cl cl) -> cl.cl_name
+ | Some (Cltype (clt,_)) -> clt.clt_name
)
]