Fix a type specification.

When calling `stream_xor/3` it is possible to supply `iodata()` directly
and you don't have to convert to a binary first. Reflect this in the type
of the specification.
This commit is contained in:
Jesper Louis Andersen 2014-12-17 08:35:50 +01:00
parent ea4558738a
commit 797daa653b

View File

@ -374,7 +374,7 @@ stream(_, _, _) -> error(badarg).
%% @end %% @end
-spec stream_xor(Msg, Nonce, Key) -> CipherText -spec stream_xor(Msg, Nonce, Key) -> CipherText
when when
Msg :: binary(), Msg :: iodata(),
Nonce :: binary(), Nonce :: binary(),
Key :: binary(), Key :: binary(),
CipherText :: binary(). CipherText :: binary().