Doc fix: inet:getopts/2 returns {ok, OptionValues}, not just OptionValues

Magnus Henoch magnus@REDACTED
Fri Mar 26 13:59:06 CET 2010


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

http://github.com/legoscia/otp/commit/61d766d29e0eb1bc555cbbfa0603a8250011d7cc

-- 
Magnus Henoch, magnus@REDACTED
Erlang Solutions
http://www.erlang-solutions.com/
---------------------------------------------------

---------------------------------------------------

WE'VE CHANGED NAMES!

Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG SOLUTIONS LTD.

www.erlang-solutions.com



More information about the erlang-patches mailing list