diff options
| author | Mark Pulford <mark@kyne.com.au> | 2012-01-02 12:41:46 +1030 |
|---|---|---|
| committer | Mark Pulford <mark@kyne.com.au> | 2012-01-02 12:41:46 +1030 |
| commit | 966f5d337d1c05446736dca220414db308e1f852 (patch) | |
| tree | 9c93b7b16c11e8da54db821e0ded197306dc4018 /lua_cjson.c | |
| parent | 15c99923b1a38404666a10596da5daa032f1c39c (diff) | |
| download | lua-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.c | 4 |
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 */ |
| 336 | static int json_cfg_refuse_invalid_numbers(lua_State *l) | 336 | static 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 |
