[erlang-patches] Doc fix: inet:getopts/2 returns {ok, OptionValues}, not just OptionValues
Björn Gustavsson
bgustavsson@REDACTED
Fri Mar 26 14:28:23 CET 2010
On Fri, Mar 26, 2010 at 1:59 PM, Magnus Henoch
<magnus@REDACTED> wrote:
> This confused me for a while: according to the type specification in the
> documentation, inet:getopts/2 returns a list of options when successful
> (see http://www.erlang.org/doc/man/inet.html#getopts-2 ), but the -spec
> in the code and the example in the documentation say that the return
> type is {ok, list()}.
>
> Thus this doc patch:
>
> git fetch git://github.com/legoscia/otp.git doc-inet-getopts
Thanks! Will include in 'pu'.
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-patches
mailing list