diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-02-16 16:02:34 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-02-16 16:10:53 +0100 |
commit | a3ed00b212fedb7dbe9dc5daf4c3beaf2c4dbe9d (patch) | |
tree | ed0ad938570af1ea1c7e7c27cfa8757e847eb843 /lib/kernel/src | |
parent | b727eb1d46cc4238e4fe7e6070f41dbfe2d21691 (diff) | |
download | otp-a3ed00b212fedb7dbe9dc5daf4c3beaf2c4dbe9d.tar.gz otp-a3ed00b212fedb7dbe9dc5daf4c3beaf2c4dbe9d.tar.bz2 otp-a3ed00b212fedb7dbe9dc5daf4c3beaf2c4dbe9d.zip |
kernel: Fix heart dialyzer types
Diffstat (limited to 'lib/kernel/src')
-rw-r--r-- | lib/kernel/src/heart.erl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/kernel/src/heart.erl b/lib/kernel/src/heart.erl index 617ae2f91b..686e2e03ff 100644 --- a/lib/kernel/src/heart.erl +++ b/lib/kernel/src/heart.erl @@ -54,7 +54,7 @@ -record(state,{port :: port(), cmd :: [] | binary(), - callback :: 'undefined' | {module(), function()}}). + callback :: 'undefined' | {atom(), atom()}}). %%--------------------------------------------------------------------- @@ -120,15 +120,16 @@ clear_cmd() -> wait(). -spec set_callback(Module,Function) -> 'ok' | {'error', {'bad_callback', {Module, Function}}} when - Module :: module(), - Function :: function(). + Module :: atom(), + Function :: atom(). set_callback(Module, Function) -> ?MODULE ! {self(), set_callback, {Module,Function}}, wait(). --spec get_callback() -> {'ok', Callback} | 'none' when - Callback :: {module(), function()}. +-spec get_callback() -> {'ok', {Module, Function}} | 'none' when + Module :: atom(), + Function :: atom(). get_callback() -> ?MODULE ! {self(), get_callback}, |