We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e1de6b commit c093b30Copy full SHA for c093b30
src/document/generator.ml
@@ -1893,12 +1893,13 @@ module Make (Syntax : SYNTAX) = struct
1893
1894
let implementation (v : Odoc_model.Lang.Implementation.t) syntax_info
1895
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
+ match v.id with
+ | None -> []
+ | Some id ->
+ [
+ Document.Source_page
+ (Source_page.source id syntax_info v.source_info source_code);
1902
+ ]
1903
end
1904
1905
include Page
0 commit comments