提交 da0ef60d 编写于 作者: E Erich Menge

Fix typo [ci skip]

上级 ec74763c
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册