[ruby/json] Add missing single quotes in error messages

https://github.com/ruby/json/commit/f3dde3cb2f
This commit is contained in:
Jean Boussier 2025-05-12 14:35:55 +02:00 committed by Hiroshi SHIBATA
parent 73d0bd5e90
commit 8cc1aa82f1
Notes: git 2025-05-13 05:12:36 +00:00

View File

@ -1062,7 +1062,7 @@ static VALUE json_parse_any(JSON_ParserState *state, JSON_ParserConfig *config)
}
if (*state->cursor != '"') {
raise_parse_error("expected object key, got '%s", state);
raise_parse_error("expected object key, got '%s'", state);
}
json_parse_string(state, config, true);
@ -1103,7 +1103,7 @@ static VALUE json_parse_any(JSON_ParserState *state, JSON_ParserConfig *config)
json_eat_whitespace(state);
if ((state->cursor >= state->end) || (*state->cursor != ':')) {
raise_parse_error("expected ':' after object key, got: '%s", state);
raise_parse_error("expected ':' after object key, got: '%s'", state);
}
state->cursor++;