From 797daa653bf70bb5ccc7db8f587749c543f2e992 Mon Sep 17 00:00:00 2001 From: Jesper Louis Andersen Date: Wed, 17 Dec 2014 08:35:50 +0100 Subject: [PATCH] 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. --- src/enacl.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enacl.erl b/src/enacl.erl index 01fdd7e..e73e4b3 100644 --- a/src/enacl.erl +++ b/src/enacl.erl @@ -374,7 +374,7 @@ stream(_, _, _) -> error(badarg). %% @end -spec stream_xor(Msg, Nonce, Key) -> CipherText when - Msg :: binary(), + Msg :: iodata(), Nonce :: binary(), Key :: binary(), CipherText :: binary().