Skip to content

Commit

Permalink
Fix type specs in base64url
Browse files Browse the repository at this point in the history
  • Loading branch information
Ransom Richardson committed May 8, 2014
1 parent ba6cd15 commit dd72248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mochiweb_base64url.erl
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
%% '_' is used in place of '/' (63),
%% padding is implicit rather than explicit ('=').

-spec encode(iolist()) -> binary().
-spec encode(iolist() | binary()) -> binary().
encode(B) when is_binary(B) ->
encode_binary(B);
encode(L) when is_list(L) ->
encode_binary(iolist_to_binary(L)).

-spec decode(iolist()) -> binary().
-spec decode(iolist() | binary()) -> binary().
decode(B) when is_binary(B) ->
decode_binary(B);
decode(L) when is_list(L) ->
Expand Down

0 comments on commit dd72248

Please sign in to comment.