File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ let rec source_code (s : Source.t) args =
38
38
in
39
39
match h with
40
40
| Source. Elt i -> inline i args ++ continue t
41
- | Tag (Some "arrow" , _ ) -> text " ->"
41
+ | Tag (Some "arrow" , _ ) ->
42
+ text " ->" (* takes care of the Entity branch of Inline.t *)
42
43
| Tag (_ , s ) -> continue s ++ continue t)
43
44
44
45
and inline (l : Inline.t ) args =
@@ -173,10 +174,10 @@ let rec documented_src (l : DocumentedSrc.t) args nbsps =
173
174
let doc = match doc with [] -> noop | doc -> block doc args in
174
175
let content =
175
176
match content with
176
- | `D code ->
177
+ | `D code (* for record fields and polymorphic variants *) ->
177
178
paragraph
178
179
(item_prop ++ nbsps' ++ (nbsp ++ nbsp) ++ inline code args)
179
- | `N l ->
180
+ | `N l (* for constructors *) ->
180
181
let c, rest = take_code l in
181
182
blocks
182
183
(paragraph
You can’t perform that action at this time.
0 commit comments