Re: Doc inconsistency for public_key:pem_entry_decode/2
Ingela Anderton Andin <[email protected]>
| Newsgroups | gmane.comp.lang.erlang.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi! I changed the spec, it should be a string. Regards Ingela Erlang/OTP team - Ericsson AB On 03/06/2015 11:51 AM, Roberto Aloi wrote: > Hi, > > according to the doc, the function expects Password::string() as the > second argument: > > http://www.erlang.org/documentation/doc-5.9.3/lib/public_key-0.17/doc/html/public_key.html#pem_entry_decode-2 > > The spec for the function expects a list of strings: > > https://github.com/erlang/otp/blob/801b09af301a872170e44c215e274425c46f8d24/lib/public_key/src/public_key.erl#L113 > > This makes dialyzer sad. Incidentallly, the code seems to work ok both > if you pass a string or a string wrapped into a list. > > -- > Roberto Aloi > --- > Website: http://roberto-aloi.com > Twitter: @robertoaloi > > > _______________________________________________ > erlang-bugs mailing list > [email protected] > http://erlang.org/mailman/listinfo/erlang-bugs > _______________________________________________ erlang-bugs mailing list [email protected] http://erlang.org/mailman/listinfo/erlang-bugs