Skip to content

Commit cbcddfd

Browse files
committed
OCaml 4.02 compat
1 parent b34eea4 commit cbcddfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/odoc/extract_code.cppo.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,6 @@ let extract ~dst ~input ~names ~line_directives ~warnings_options =
239239
#else
240240

241241
let extract ~dst:_ ~input:_ ~names:_ ~line_directives:_ ~warnings_options:_ =
242-
Error (`Msg "Extract-code is not available for OCaml < 4.10")
242+
Result.Error (`Msg "Extract-code is not available for OCaml < 4.10")
243243

244244
#endif

src/odoc/extract_code.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ val extract :
44
names:string list ->
55
line_directives:bool ->
66
warnings_options:Odoc_model.Error.warnings_options ->
7-
(unit, [> `Msg of string ]) result
7+
(unit, [> `Msg of string ]) Result.result

0 commit comments

Comments
 (0)