From 2e68b70cb721d85ea71761cf62dc47d627844226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 3 Jun 2018 08:01:49 +0200 Subject: Fix the inet:ip_address() type --- src/gun.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gun.erl') diff --git a/src/gun.erl b/src/gun.erl index a4ef417..bad1418 100644 --- a/src/gun.erl +++ b/src/gun.erl @@ -125,12 +125,12 @@ %% Connection. --spec open(inet:hostname() | inet:ipaddress(), inet:port_number()) +-spec open(inet:hostname() | inet:ip_address(), inet:port_number()) -> {ok, pid()} | {error, any()}. open(Host, Port) -> open(Host, Port, #{}). --spec open(inet:hostname() | inet:ipaddress(), inet:port_number(), opts()) +-spec open(inet:hostname() | inet:ip_address(), inet:port_number(), opts()) -> {ok, pid()} | {error, any()}. open(Host, Port, Opts) when is_list(Host); is_atom(Host); is_tuple(Host) -> do_open(Host, Port, Opts). -- cgit v1.2.3