diff --git a/src/jiffy_utf8.erl b/src/jiffy_utf8.erl index f36cbc7..e79756f 100644 --- a/src/jiffy_utf8.erl +++ b/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. diff --git a/test/jiffy_16_dedupe_keys_tests.erl b/test/jiffy_16_dedupe_keys_tests.erl index 18b5394..9719f49 100644 --- a/test/jiffy_16_dedupe_keys_tests.erl +++ b/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}]}]