aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-01-29 23:37:30 +0100
committerLoïc Hoguin <[email protected]>2019-01-29 23:37:30 +0100
commit49480d5a99636e108abf5fea9d627e2c26d367f6 (patch)
tree74c6e4fabc9ae837754a5fa8a82b037d44286efc /lib/kernel
parentdb2c3c83fd3059cec4c5de3ece8c96fe2c97233a (diff)
downloadotp-49480d5a99636e108abf5fea9d627e2c26d367f6.tar.gz
otp-49480d5a99636e108abf5fea9d627e2c26d367f6.tar.bz2
otp-49480d5a99636e108abf5fea9d627e2c26d367f6.zip
Fix spec for erl_epmd:port_please
It accepts both atoms and strings for the node and host name, plus IP tuples for the host name.
Diffstat (limited to 'lib/kernel')
-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().