Skip to content

Commit 75ada77

Browse files
hsbtbrunojabs
andcommitted
Doc: Improve documentation on JSON#parse and JSON#parse!
Co-authored-by: Bruno Gomes da Silva <[email protected]>
1 parent 32b0185 commit 75ada77

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ext/json/ext/parser/parser.c

+1
Original file line numberDiff line numberDiff line change
@@ -2950,6 +2950,7 @@ static const char MAYBE_UNUSED(_JSON_nfa_pop_trans)[] = {
29502950
*
29512951
* Parses the current JSON text _source_ and returns the complete data
29522952
* structure as a result.
2953+
* It raises JSON::ParseError if fail to parse.
29532954
*/
29542955
static VALUE cParser_parse(VALUE self)
29552956
{

ext/json/ext/parser/parser.rl

+1
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,7 @@ static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self)
839839
*
840840
* Parses the current JSON text _source_ and returns the complete data
841841
* structure as a result.
842+
* It raises JSON::ParseError if fail to parse.
842843
*/
843844
static VALUE cParser_parse(VALUE self)
844845
{

0 commit comments

Comments
 (0)