couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [07/45] mochiweb commit: updated refs/heads/master to cb521b3
Date Tue, 25 Aug 2015 17:38:25 GMT
Fix type specs in base64url


Project: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/commit/dd72248a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/tree/dd72248a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/diff/dd72248a

Branch: refs/heads/master
Commit: dd72248a4325f515b5571014ca02ff55569004d6
Parents: ba6cd15
Author: Ransom Richardson <ransomr@talko.com>
Authored: Thu May 8 20:08:01 2014 +0000
Committer: Ransom Richardson <ransomr@talko.com>
Committed: Thu May 8 20:08:01 2014 +0000

----------------------------------------------------------------------
 src/mochiweb_base64url.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mochiweb/blob/dd72248a/src/mochiweb_base64url.erl
----------------------------------------------------------------------
diff --git a/src/mochiweb_base64url.erl b/src/mochiweb_base64url.erl
index ab5aaec..5f552e0 100644
--- a/src/mochiweb_base64url.erl
+++ b/src/mochiweb_base64url.erl
@@ -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) ->


Mime
View raw message