diff --git a/ext/json/ext/parser/parser.c b/ext/json/ext/parser/parser.c index 9bd7f197..9f616b34 100644 --- a/ext/json/ext/parser/parser.c +++ b/ext/json/ext/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/ext/parser/parser.rl b/ext/json/ext/parser/parser.rl index 2dbdc7ef..7616e197 100644 --- a/ext/json/ext/parser/parser.rl +++ b/ext/json/ext/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) {