aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-05-21 01:45:50 +0900
committerGitHub <noreply@github.com>2019-05-21 01:45:50 +0900
commitd246e2f4511ee9a4b228f92e1d54547c7aab58d2 (patch)
tree5e1011c3fb28aa40de9c014a75942ba4fa5d0a66
parentbbd065204ed45071f048badb7c0d49e35773d788 (diff)
parent2256f0bdb09a39a8752183e3422b76e1cd05df1a (diff)
downloadrails-d246e2f4511ee9a4b228f92e1d54547c7aab58d2.tar.gz
rails-d246e2f4511ee9a4b228f92e1d54547c7aab58d2.tar.bz2
rails-d246e2f4511ee9a4b228f92e1d54547c7aab58d2.zip
Merge pull request #36309 from alexandergraul/number_to_human_size_examples
Correct human file size examples [ci skip]
-rw-r--r--actionview/lib/action_view/helpers/number_helper.rb2
-rw-r--r--activesupport/lib/active_support/number_helper.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/number_helper.rb b/actionview/lib/action_view/helpers/number_helper.rb
index 35206b7e48..03ec7df9c1 100644
--- a/actionview/lib/action_view/helpers/number_helper.rb
+++ b/actionview/lib/action_view/helpers/number_helper.rb
@@ -251,7 +251,7 @@ module ActionView
end
# Formats the bytes in +number+ into a more understandable
- # representation (e.g., giving it 1500 yields 1.5 KB). This
+ # representation (e.g., giving it 1500 yields 1.46 KB). This
# method is useful for reporting file sizes to users. You can
# customize the format in the +options+ hash.
#
diff --git a/activesupport/lib/active_support/number_helper.rb b/activesupport/lib/active_support/number_helper.rb
index d19a2f64d4..8f3d04aa5c 100644
--- a/activesupport/lib/active_support/number_helper.rb
+++ b/activesupport/lib/active_support/number_helper.rb
@@ -228,7 +228,7 @@ module ActiveSupport
end
# Formats the bytes in +number+ into a more understandable
- # representation (e.g., giving it 1500 yields 1.5 KB). This
+ # representation (e.g., giving it 1500 yields 1.46 KB). This
# method is useful for reporting file sizes to users. You can
# customize the format in the +options+ hash.
#