fix typo - json2tsv - JSON to TSV converter
HTML git clone git://git.codemadness.org/json2tsv
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 29d08288c8e16e76e408f2cab0729d7136b493fb
DIR parent ee80731f6fa75e73aea2a30b4cf1f4bb939b6545
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 1 Jun 2020 12:15:09 +0200
fix typo
Diffstat:
M json.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/json.c b/json.c
@@ -148,7 +148,7 @@ escchr:
goto end;
for (i = 12, cp = 0; i >= 0; i -= 4) {
if ((c = GETNEXT()) == EOF || !isxdigit(c))
- JSON_INVALID(); /* invalid codepoint */
+ JSON_INVALID(); /* invalid code point */
cp |= (hexdigit(c) << i);
}
/* RFC8259 - 7. Strings - surrogates.
@@ -164,7 +164,7 @@ escchr:
}
for (hi = cp, i = 12, lo = 0; i >= 0; i -= 4) {
if ((c = GETNEXT()) == EOF || !isxdigit(c))
- JSON_INVALID(); /* invalid codepoint */
+ JSON_INVALID(); /* invalid code point */
lo |= (hexdigit(c) << i);
}
/* 0xdc00 - 0xdfff - low surrogates */