summaryrefslogtreecommitdiff
path: root/ext/json/lib/json.rb
diff options
context:
space:
mode:
authorBurdetteLamar <[email protected]>2020-06-25 12:09:28 -0500
committerHiroshi SHIBATA <[email protected]>2020-07-01 18:47:51 +0900
commit99980b3034f59eb1253411f1220e1591f47a49c1 (patch)
tree7ee992113b6b51c23f0e41dc6895c090ebe02039 /ext/json/lib/json.rb
parentfe10323a35d20d7ab5d4291e23eb04fb3ef77a2b (diff)
[flori/json] RDoc enhancements
https://github.com/flori/json/commit/7bee2c7c13
Diffstat (limited to 'ext/json/lib/json.rb')
-rw-r--r--ext/json/lib/json.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/json/lib/json.rb b/ext/json/lib/json.rb
index a96f4bc612..8fc7e8300b 100644
--- a/ext/json/lib/json.rb
+++ b/ext/json/lib/json.rb
@@ -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):