Просмотр исходного кода

Fix typos spotted by GitHub user kianmeng

pull/219/head
Paul J. Davis 3 лет назад
Родитель
Сommit
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}]}]

Загрузка…
Отмена
Сохранить