aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2012-01-02 12:41:46 +1030
committerMark Pulford <mark@kyne.com.au>2012-01-02 12:41:46 +1030
commit966f5d337d1c05446736dca220414db308e1f852 (patch)
tree9c93b7b16c11e8da54db821e0ded197306dc4018 /lua
parent15c99923b1a38404666a10596da5daa032f1c39c (diff)
downloadlua-cjson-966f5d337d1c05446736dca220414db308e1f852.tar.gz
lua-cjson-966f5d337d1c05446736dca220414db308e1f852.tar.bz2
lua-cjson-966f5d337d1c05446736dca220414db308e1f852.zip
Fix typos (lists, hexadecimal)
Diffstat (limited to '')
-rw-r--r--lua_cjson.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua_cjson.c b/lua_cjson.c
index ca85156..708e695 100644
--- a/lua_cjson.c
+++ b/lua_cjson.c
@@ -332,7 +332,7 @@ static void json_enum_option(lua_State *l, const char **options,
332} 332}
333 333
334 334
335/* When enabled, rejects: NaN, Infinity, hexidecimal numbers */ 335/* When enabled, rejects: NaN, Infinity, hexadecimal numbers */
336static int json_cfg_refuse_invalid_numbers(lua_State *l) 336static int json_cfg_refuse_invalid_numbers(lua_State *l)
337{ 337{
338 static const char *options_enc_dec[] = { "none", "encode", "decode", 338 static const char *options_enc_dec[] = { "none", "encode", "decode",
@@ -929,7 +929,7 @@ static void json_next_string_token(json_parse_t *json, json_token_t *token)
929 * json_next_number_token() uses strtod() which allows other forms: 929 * json_next_number_token() uses strtod() which allows other forms:
930 * - numbers starting with '+' 930 * - numbers starting with '+'
931 * - NaN, -NaN, infinity, -infinity 931 * - NaN, -NaN, infinity, -infinity
932 * - hexidecimal numbers 932 * - hexadecimal numbers
933 * - numbers with leading zeros 933 * - numbers with leading zeros
934 * 934 *
935 * json_is_invalid_number() detects "numbers" which may pass strtod()'s 935 * json_is_invalid_number() detects "numbers" which may pass strtod()'s