Browse Source

fix spec for host option

juhlig 6 years ago
parent
commit
bbd9ff2cb4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/mysql.erl

+ 2 - 1
src/mysql.erl

@@ -129,7 +129,8 @@
 %% </dl>
 -spec start_link(Options) -> {ok, pid()} | ignore | {error, term()}
     when Options :: [Option],
-         Option :: {name, ServerName} | {host, iodata()} | {port, integer()} |
+         Option :: {name, ServerName} |
+                   {host, inet:socket_address() | inet:hostname()} | {port, integer()} |
                    {user, iodata()} | {password, iodata()} |
                    {database, iodata()} |
                    {connect_timeout, timeout()} |