diff options
author | Brujo Benavides <[email protected]> | 2016-07-26 10:11:12 -0300 |
---|---|---|
committer | GitHub <[email protected]> | 2016-07-26 10:11:12 -0300 |
commit | de7e9fb478181f60fa0b3e8340e5a74ae0beb1a3 (patch) | |
tree | 2961b52856717198ce3187e811d4e58a9628d6cb /lib/dialyzer | |
parent | 19822234eaf6f5e4066d42a304b87d1f6b33c04c (diff) | |
download | otp-de7e9fb478181f60fa0b3e8340e5a74ae0beb1a3.tar.gz otp-de7e9fb478181f60fa0b3e8340e5a74ae0beb1a3.tar.bz2 otp-de7e9fb478181f60fa0b3e8340e5a74ae0beb1a3.zip |
Improve format_warning/1 spec
Let it handle `dial_warning()` input as well, to match what `format_warning/2` expects.
Diffstat (limited to 'lib/dialyzer')
-rw-r--r-- | lib/dialyzer/src/dialyzer.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dialyzer/src/dialyzer.erl b/lib/dialyzer/src/dialyzer.erl index bcac8afe64..7f86520c06 100644 --- a/lib/dialyzer/src/dialyzer.erl +++ b/lib/dialyzer/src/dialyzer.erl @@ -282,7 +282,7 @@ cl_check_log(none) -> cl_check_log(Output) -> io:format(" Check output file `~s' for details\n", [Output]). --spec format_warning(raw_warning()) -> string(). +-spec format_warning(raw_warning() | dial_warning()) -> string(). format_warning(W) -> format_warning(W, basename). |