ruby-changes:71892
From: Hiroshi <ko1@a...>
Date: Fri, 20 May 2022 18:02:09 +0900 (JST)
Subject: [ruby-changes:71892] 767f3904ee (master): [flori/json] Doc: Improve documentation on JSON#parse and JSON#parse!
https://git.ruby-lang.org/ruby.git/commit/?id=767f3904ee From 767f3904ee2a15575c292d89578de7669f169346 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Thu, 2 Dec 2021 16:42:41 +0900 Subject: [flori/json] Doc: Improve documentation on JSON#parse and JSON#parse! https://github.com/flori/json/commit/75ada77b96 Co-authored-by: Bruno Gomes da Silva <brunojabs@g...> --- ext/json/parser/parser.c | 1 + ext/json/parser/parser.rl | 1 + 2 files changed, 2 insertions(+) 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)[] = { https://github.com/ruby/ruby/blob/trunk/ext/json/parser/parser.c#L2950 * * 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) https://github.com/ruby/ruby/blob/trunk/ext/json/parser/parser.rl#L839 * * 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) { -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/