Skip to content

Commit 92654cd

Browse files
committed
Update method docs for JSON.load and JSON.unsafe_load to show the correct use of proc argument.
1 parent 77292cb commit 92654cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/json/common.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ def pretty_generate(obj, opts = nil)
662662
# when Array
663663
# obj.map! {|v| deserialize_obj v }
664664
# end
665+
# obj
665666
# })
666667
# pp ruby
667668
# Output:
@@ -826,6 +827,7 @@ def unsafe_load(source, proc = nil, options = nil)
826827
# when Array
827828
# obj.map! {|v| deserialize_obj v }
828829
# end
830+
# obj
829831
# })
830832
# pp ruby
831833
# Output:

0 commit comments

Comments
 (0)