Skip to content

Commit 45c7307

Browse files
committed
Formatting
1 parent 2151759 commit 45c7307

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

doc/library_mlds/dune

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
(documentation
22
(package odoc)
3-
(mld_files
4-
odoc_document
5-
odoc_examples
6-
odoc_html
7-
odoc_latex
8-
odoc_loader
9-
odoc_manpage
10-
odoc_model
11-
odoc_model_desc
12-
odoc_odoc
13-
odoc_xref2
14-
odoc_xref_test))
15-
16-
3+
(mld_files odoc_document odoc_examples odoc_html odoc_latex odoc_loader
4+
odoc_manpage odoc_model odoc_model_desc odoc_odoc odoc_xref2
5+
odoc_xref_test))

src/xref2/env.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ let add_to_elts kind identifier component env =
222222
let other = ElementsById.find_by_id identifier env.ids in
223223
match other with
224224
| Some _ ->
225-
(* Format.eprintf "Overriding duplicate env entry\n%!" *)
226-
()
225+
(* Format.eprintf "Overriding duplicate env entry\n%!" *)
226+
()
227227
| None -> ()
228228
in
229229
let name = Identifier.name identifier in

src/xref2/errors.ml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,14 @@ let rec kind_of_module_type_cpath = function
234234
(** [Some (`Root _)] for errors during lookup of root modules or [None] for
235235
other errors. *)
236236
let rec kind_of_error : Tools_error.any -> kind option = function
237-
| `UnresolvedPath (`Module (cp, e)) -> (match kind_of_module_cpath cp with | None -> kind_of_error (e :> Tools_error.any) | x -> x)
238-
| `UnresolvedPath (`ModuleType (cp, e)) -> (match kind_of_module_type_cpath cp with | None -> kind_of_error (e :> Tools_error.any) | x -> x)
237+
| `UnresolvedPath (`Module (cp, e)) -> (
238+
match kind_of_module_cpath cp with
239+
| None -> kind_of_error (e :> Tools_error.any)
240+
| x -> x)
241+
| `UnresolvedPath (`ModuleType (cp, e)) -> (
242+
match kind_of_module_type_cpath cp with
243+
| None -> kind_of_error (e :> Tools_error.any)
244+
| x -> x)
239245
| `Lookup_failure (`Root (_, name)) ->
240246
Some (`Root (Names.ModuleName.to_string name))
241247
| `UnexpandedTypeOf type_of_desc -> kind_of_type_of_desc type_of_desc

0 commit comments

Comments
 (0)