Fix typo [ci skip]
This commit is contained in:
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user