diff --git a/lib/ex_doc/language.ex b/lib/ex_doc/language.ex index 5b621e47c..8d1cf64c4 100644 --- a/lib/ex_doc/language.ex +++ b/lib/ex_doc/language.ex @@ -64,7 +64,7 @@ defmodule ExDoc.Language do %{ line: non_neg_integer() | nil, specs: [spec_ast()], - doc_fallback: (() -> ExDoc.DocAST.t()) | nil, + doc_fallback: (-> ExDoc.DocAST.t()) | nil, extra_annotations: [String.t()] } | :skip diff --git a/test/ex_doc/cli_test.exs b/test/ex_doc/cli_test.exs index 5be28e200..4d0010af1 100644 --- a/test/ex_doc/cli_test.exs +++ b/test/ex_doc/cli_test.exs @@ -17,14 +17,46 @@ defmodule ExDoc.CLITest do test "minimum command-line options" do {[html, epub], _io} = run(["ExDoc", "1.2.3", @ebin]) - assert html == {"ExDoc", "1.2.3", [formatter: "html", formatters: ["html", "epub"], apps: [:ex_doc], source_beam: @ebin]} - assert epub == {"ExDoc", "1.2.3", [formatter: "epub", formatters: ["html", "epub"], apps: [:ex_doc], source_beam: @ebin]} + + assert html == + {"ExDoc", "1.2.3", + [ + formatter: "html", + formatters: ["html", "epub"], + apps: [:ex_doc], + source_beam: @ebin + ]} + + assert epub == + {"ExDoc", "1.2.3", + [ + formatter: "epub", + formatters: ["html", "epub"], + apps: [:ex_doc], + source_beam: @ebin + ]} end test "formatter option" do {[epub, html], _io} = run(["ExDoc", "1.2.3", @ebin, "-f", "epub", "-f", "html"]) - assert epub == {"ExDoc", "1.2.3", [formatter: "epub", formatters: ["epub", "html"], apps: [:ex_doc], source_beam: @ebin]} - assert html == {"ExDoc", "1.2.3", [formatter: "html", formatters: ["epub", "html"], apps: [:ex_doc], source_beam: @ebin]} + + assert epub == + {"ExDoc", "1.2.3", + [ + formatter: "epub", + formatters: ["epub", "html"], + apps: [:ex_doc], + source_beam: @ebin + ]} + + assert html == + {"ExDoc", "1.2.3", + [ + formatter: "html", + formatters: ["epub", "html"], + apps: [:ex_doc], + source_beam: @ebin + ]} end test "version" do