Skip to content

Commit f3dde3c

Browse files
committed
Add missing single quotes in error messages
1 parent 41f1f69 commit f3dde3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/json/ext/parser/parser.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@ static VALUE json_parse_any(JSON_ParserState *state, JSON_ParserConfig *config)
10621062
}
10631063

10641064
if (*state->cursor != '"') {
1065-
raise_parse_error("expected object key, got '%s", state);
1065+
raise_parse_error("expected object key, got '%s'", state);
10661066
}
10671067
json_parse_string(state, config, true);
10681068

@@ -1103,7 +1103,7 @@ static VALUE json_parse_any(JSON_ParserState *state, JSON_ParserConfig *config)
11031103

11041104
json_eat_whitespace(state);
11051105
if ((state->cursor >= state->end) || (*state->cursor != ':')) {
1106-
raise_parse_error("expected ':' after object key, got: '%s", state);
1106+
raise_parse_error("expected ':' after object key, got: '%s'", state);
11071107
}
11081108
state->cursor++;
11091109

0 commit comments

Comments
 (0)