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

Magnus Henoch <>
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 ), 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:// doc-inet-getopts

Magnus Henoch, 
Erlang Solutions



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

More information about the erlang-patches mailing list