You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2010/07/04 23:34:20 UTC
svn commit: r960403 -
/couchdb/branches/new_replicator/src/couchdb/json_stream_parse.erl
Author: fdmanana
Date: Sun Jul 4 21:34:20 2010
New Revision: 960403
URL: http://svn.apache.org/viewvc?rev=960403&view=rev
Log:
Fix comment and indentation.
Modified:
couchdb/branches/new_replicator/src/couchdb/json_stream_parse.erl
Modified: couchdb/branches/new_replicator/src/couchdb/json_stream_parse.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/new_replicator/src/couchdb/json_stream_parse.erl?rev=960403&r1=960402&r2=960403&view=diff
==============================================================================
--- couchdb/branches/new_replicator/src/couchdb/json_stream_parse.erl (original)
+++ couchdb/branches/new_replicator/src/couchdb/json_stream_parse.erl Sun Jul 4 21:34:20 2010
@@ -86,7 +86,7 @@ to_ejson(DF) ->
% fun(Ev2) -> ev_object_loop(Ev2) end
% end)
% end;
-% ev_loop(array_end) ->
+% ev_object_loop(array_end) ->
% ok
% end.
%
@@ -203,9 +203,9 @@ must_match(Pattern, DF, Data) ->
must_df(DF,Error)->
case DF() of
done ->
- err(Error);
+ err(Error);
{Data, DF2} ->
- {Data, DF2}
+ {Data, DF2}
end.
@@ -214,8 +214,8 @@ must_df(DF,NeedLen,Acc,Error)->
{Acc, DF};
true ->
case DF() of
- done ->
- err(Error);
+ done ->
+ err(Error);
{Data, DF2} ->
must_df(DF2, NeedLen, <<Acc/binary, Data/binary>>, Error)
end