Skip to content

Commit c093b30

Browse files
panglesdjonludlam
authored andcommitted
Compatibility fix
Signed-off-by: Paul-Elliot <peada@free.fr>
1 parent 7e1de6b commit c093b30

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/document/generator.ml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,12 +1893,13 @@ module Make (Syntax : SYNTAX) = struct
18931893

18941894
let implementation (v : Odoc_model.Lang.Implementation.t) syntax_info
18951895
source_code =
1896-
Option.map
1897-
(fun id ->
1898-
Document.Source_page
1899-
(Source_page.source id syntax_info v.source_info source_code))
1900-
v.id
1901-
|> Option.to_list
1896+
match v.id with
1897+
| None -> []
1898+
| Some id ->
1899+
[
1900+
Document.Source_page
1901+
(Source_page.source id syntax_info v.source_info source_code);
1902+
]
19021903
end
19031904

19041905
include Page

0 commit comments

Comments
 (0)