diff --git a/ext/json/parser/parser.c b/ext/json/parser/parser.c index 9bd7f1971e..9f616b34d2 100644 --- a/ext/json/parser/parser.c +++ b/ext/json/parser/parser.c @@ -2958,7 +2958,7 @@ static const char MAYBE_UNUSED(_JSON_nfa_pop_trans)[] = { * * Parses the current JSON text _source_ and returns the complete data * structure as a result. -* It raises JSON::ParseError if fail to parse. +* It raises JSON::ParserError if fail to parse. */ static VALUE cParser_parse(VALUE self) { diff --git a/ext/json/parser/parser.rl b/ext/json/parser/parser.rl index 2dbdc7ef24..7616e197d0 100644 --- a/ext/json/parser/parser.rl +++ b/ext/json/parser/parser.rl @@ -847,7 +847,7 @@ static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self) * * Parses the current JSON text _source_ and returns the complete data * structure as a result. - * It raises JSON::ParseError if fail to parse. + * It raises JSON::ParserError if fail to parse. */ static VALUE cParser_parse(VALUE self) {