aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-02-01 11:16:29 +0100
committerGitHub <[email protected]>2019-02-01 11:16:29 +0100
commit8ffb4e56172909b3b1acadaf7e9ec8f7dbe2c3e0 (patch)
tree6931e931108ae1823de9a9c185a25b5e64ebbc69 /lib/kernel/src
parente7b3656bae68d14435eca2de9a7efbdb62b83f07 (diff)
parent49480d5a99636e108abf5fea9d627e2c26d367f6 (diff)
downloadotp-8ffb4e56172909b3b1acadaf7e9ec8f7dbe2c3e0.tar.gz
otp-8ffb4e56172909b3b1acadaf7e9ec8f7dbe2c3e0.tar.bz2
otp-8ffb4e56172909b3b1acadaf7e9ec8f7dbe2c3e0.zip
Merge pull request #2117 from essen/fix-erl_epmd_port_please-spec/OTP-15557
Fix spec for erl_epmd:port_please
Diffstat (limited to 'lib/kernel/src')
-rw-r--r--lib/kernel/src/erl_epmd.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kernel/src/erl_epmd.erl b/lib/kernel/src/erl_epmd.erl
index b7e8868911..7a14e2635c 100644
--- a/lib/kernel/src/erl_epmd.erl
+++ b/lib/kernel/src/erl_epmd.erl
@@ -77,8 +77,8 @@ stop() ->
%%
-spec port_please(Name, Host) -> {ok, Port, Version} | noport when
- Name :: string(),
- Host :: inet:ip_address(),
+ Name :: atom() | string(),
+ Host :: atom() | string() | inet:ip_address(),
Port :: non_neg_integer(),
Version :: non_neg_integer().
@@ -86,8 +86,8 @@ port_please(Node, Host) ->
port_please(Node, Host, infinity).
-spec port_please(Name, Host, Timeout) -> {ok, Port, Version} | noport when
- Name :: string(),
- Host :: inet:ip_address(),
+ Name :: atom() | string(),
+ Host :: atom() | string() | inet:ip_address(),
Timeout :: non_neg_integer() | infinity,
Port :: non_neg_integer(),
Version :: non_neg_integer().