浏览代码

Fix typos spotted by GitHub user kianmeng

pull/219/head
Paul J. Davis 3 年前
父节点
当前提交
b5f3d087cf
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      src/jiffy_utf8.erl
  2. +1
    -1
      test/jiffy_16_dedupe_keys_tests.erl

+ 1
- 1
src/jiffy_utf8.erl 查看文件

@ -77,7 +77,7 @@ loose_decode(Bin, O, Acc) ->
<<_:O/binary, _:8/integer, R/binary>> ->
% Broken lead or continuation byte. Discard first
% byte and all broken continuations. Replace the
% whole mess with a replacment code point.
% whole mess with a replacement code point.
T = 1 + count_continuation_bytes(R, 0),
loose_decode(Bin, O+T, [16#FFFD | Acc])
end.

+ 1
- 1
test/jiffy_16_dedupe_keys_tests.erl 查看文件

@ -38,7 +38,7 @@ dedupe_keys_test_() ->
{[{<<"foo">>, {[{<<"bar">>, 1}, {<<"bar">>, 2}]}}]},
{[{<<"foo">>, {[{<<"bar">>, 2}]}}]}
},
% Objets in arrays are handled
% Objects in arrays are handled
{
[{[{<<"foo">>, 1}, {<<"foo">>, 2}]}],
[{[{<<"foo">>, 2}]}]

正在加载...
取消
保存