1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[flori/json] RDoc enhancements

7bee2c7c13
This commit is contained in:
BurdetteLamar 2020-06-25 12:09:28 -05:00 committed by Hiroshi SHIBATA
parent fe10323a35
commit 99980b3034
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
2 changed files with 3 additions and 28 deletions

View file

@ -150,8 +150,8 @@ require 'json/common'
#
# When the source is a Ruby \Integer or \Float, JSON.generate returns
# a \String containing a \JSON number:
# JSON.generate(Integer(0)) # => "0""
# JSON.generate(Float(1.0)) # => "1.0"
# JSON.generate(42) # => "42"
# JSON.generate(0.42) # => "0.42"
#
# When the source is a Ruby \String, JSON.generate returns
# a \String containing a \JSON string (with double-quotes):