From 20b80ca317759687cff3f2ce3746c742c5c58b66 Mon Sep 17 00:00:00 2001 From: Dimitar Haralanov Date: Wed, 12 Jul 2023 14:52:21 +0200 Subject: [PATCH] Rename JSON::ParseError to JSON:ParserError --- ext/json/ext/parser/parser.c | 2 +- ext/json/ext/parser/parser.rl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/json/ext/parser/parser.c b/ext/json/ext/parser/parser.c index 9bd7f1971..9f616b34d 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 2dbdc7ef2..7616e197d 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) {