未验证 提交 b53b188c 编写于 作者: K Kasper Timm Hansen 提交者: GitHub

Merge pull request #37562 from BakiVernes/vp/number_helper_docs

[ci skip] Fix lower case comments without punctuation
......@@ -16,7 +16,7 @@ def convert # :nodoc:
@number = RoundingHelper.new(options).round(number)
@number = Float(number)
# for backwards compatibility with those that didn't add strip_insignificant_zeros to their locale files
# For backwards compatibility with those that didn't add strip_insignificant_zeros to their locale files.
unless options.key?(:strip_insignificant_zeros)
options[:strip_insignificant_zeros] = true
end
......
......@@ -13,7 +13,7 @@ class NumberToHumanSizeConverter < NumberConverter #:nodoc:
def convert
@number = Float(number)
# for backwards compatibility with those that didn't add strip_insignificant_zeros to their locale files
# For backwards compatibility with those that didn't add strip_insignificant_zeros to their locale files.
unless options.key?(:strip_insignificant_zeros)
options[:strip_insignificant_zeros] = true
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册