Skip to content

Commit

Permalink
Remove trailing ws and fix comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Katz authored and Damien Katz committed Mar 27, 2011
1 parent 32b324f commit d9f3283
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion c_src/encode.c
Expand Up @@ -84,7 +84,7 @@ final_encode(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
ctx.fill_offset = 0;
ctx.error = 0;

if (!enif_alloc_binary(100, &ctx.bin)) {
if (!enif_alloc_binary(100, &ctx.bin)) {
return no_mem_error(env);
}

Expand Down
3 changes: 1 addition & 2 deletions src/json.erl
Expand Up @@ -37,8 +37,7 @@ encode(EJson) ->
% Encode the json into a reverse list that's almost an iolist
% everything in the list is the final output except for tuples with
% {0, Strings} and {1, Floats}, which are to be converted to strings
% inside the NIF. The Nif also reverses the output, producing the final
% iolist.
% inside the NIF.
encode_rev(true) ->
<<"true">>;
encode_rev(false) ->
Expand Down

0 comments on commit d9f3283

Please sign in to comment.