Fix jiffy:encode Dialyzer spec.

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

Branch: refs/heads/master
Commit: cfc61a2e952dc3182e0f9b1473467563699992e2
Parents: 66594cf
Author: Adam Krupicka <[email protected]>
Authored: Tue Oct 13 14:54:39 2015 +0200
Committer: Paul J. Davis <[email protected]>
Committed: Tue Oct 13 11:24:37 2015 -0500

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


http://git-wip-us.apache.org/repos/asf/couchdb-jiffy/blob/cfc61a2e/src/jiffy.erl
----------------------------------------------------------------------
diff --git a/src/jiffy.erl b/src/jiffy.erl
index 4c9577f..78f4cf2 100644
--- a/src/jiffy.erl
+++ b/src/jiffy.erl
@@ -77,12 +77,12 @@ decode(Data, Opts) when is_list(Data) ->
     decode(iolist_to_binary(Data), Opts).
 
 
--spec encode(json_value()) -> iolist().
+-spec encode(json_value()) -> iodata().
 encode(Data) ->
     encode(Data, []).
 
 
--spec encode(json_value(), encode_options()) -> iolist().
+-spec encode(json_value(), encode_options()) -> iodata().
 encode(Data, Options) ->
     ForceUTF8 = lists:member(force_utf8, Options),
     case nif_encode_init(Data, Options) of

Reply via email to