Fix typos

This commit is contained in:
Kian-Meng, Ang 2021-09-23 20:20:12 +08:00
parent 590214d80f
commit 1d5c261c18
3 changed files with 7 additions and 7 deletions

View file

@ -138,7 +138,7 @@ anywhere whitespace is allowed you can insert comments (both `// ...` and `/* ..
some particularly irresponsible json emitters leave trailing commas at the end of
objects or arrays. **jsx** allows a single trailing comma in input. multiple commas
in any posistion or a preceding comma are still errors
in any position or a preceding comma are still errors
all **jsx** decoder input should be `utf8` encoded binaries. sometimes you get binaries
that are almost but not quite valid utf8 whether due to improper escaping or poor

View file

@ -20,5 +20,5 @@
{env, []},
{licenses, ["MIT"]},
{links, [{"Github", "https://github.com/talentdeficit/jsx"}]}
{links, [{"GitHub", "https://github.com/talentdeficit/jsx"}]}
]}.

View file

@ -85,7 +85,7 @@ resume(Rest, State, Handler, Acc, Stack, Config) ->
-define(start_array, 16#5B).
-define(end_array, 16#5D).
%% kv seperator
%% kv separator
-define(comma, 16#2C).
-define(doublequote, 16#22).
-define(singlequote, 16#27).
@ -1133,11 +1133,11 @@ special_number_test_() ->
comments_test_() ->
Cases = [
% {title, test form, json, opt flags}
{"preceeding // comment",
{"preceding // comment",
[start_array, end_array, end_json],
<<"// comment ", ?newline, "[]">>
},
{"preceeding /**/ comment",
{"preceding /**/ comment",
[start_array, end_array, end_json],
<<"/* comment */[]">>
},
@ -1349,7 +1349,7 @@ comments_test_() ->
[start_array, {literal, true}, end_array, end_json],
<<"[ /* comment ", 16#00c0, " */ true]">>
},
{"/**/ comment with badutf preceeded by /",
{"/**/ comment with badutf preceded by /",
[start_array, {literal, true}, end_array, end_json],
<<"[ /* comment /", 16#00c0, " */ true]">>
}
@ -1383,7 +1383,7 @@ no_comments_test_() ->
<<"[ /* comment ", 16#00c0, " */ true]">>,
[{strict, [utf8]}]
},
{"/**/ comment with badutf preceeded by /",
{"/**/ comment with badutf preceded by /",
badarg,
<<"[ /* comment /", 16#00c0, " */ true]">>,
[{strict, [utf8]}]