diff options
-rw-r--r-- | ext/json/parser/parser.c | 1 | ||||
-rw-r--r-- | ext/json/parser/parser.rl | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/json/parser/parser.c b/ext/json/parser/parser.c index b1dc8810c3..b7de60ddfb 100644 --- a/ext/json/parser/parser.c +++ b/ext/json/parser/parser.c @@ -2950,6 +2950,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. */ static VALUE cParser_parse(VALUE self) { diff --git a/ext/json/parser/parser.rl b/ext/json/parser/parser.rl index f7be1a5acc..15e6b929f5 100644 --- a/ext/json/parser/parser.rl +++ b/ext/json/parser/parser.rl @@ -839,6 +839,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. */ static VALUE cParser_parse(VALUE self) { |