Fix typo [ci skip]

This commit is contained in:
Erich Menge 2012-05-30 12:48:57 -05:00
parent ec74763c39
commit da0ef60d3b

@ -192,7 +192,7 @@ def encode_json(encoder) to_s end #:nodoc:
class Float
# Encoding Infinity or NaN to JSON should return "null". The default returns
# "Infinity" or "NaN" breaks parsing the JSON. E.g. JSON.parse('[NaN]').
# "Infinity" or "NaN" which breaks parsing the JSON. E.g. JSON.parse('[NaN]').
def as_json(options = nil) finite? ? self : nil end #:nodoc:
end