diff options
author | Alexander Graul <agraul@suse.com> | 2019-05-20 17:58:35 +0200 |
---|---|---|
committer | Alexander Graul <agraul@suse.com> | 2019-05-20 18:25:11 +0200 |
commit | 2256f0bdb09a39a8752183e3422b76e1cd05df1a (patch) | |
tree | 5e1011c3fb28aa40de9c014a75942ba4fa5d0a66 /activesupport/lib | |
parent | bbd065204ed45071f048badb7c0d49e35773d788 (diff) | |
download | rails-2256f0bdb09a39a8752183e3422b76e1cd05df1a.tar.gz rails-2256f0bdb09a39a8752183e3422b76e1cd05df1a.tar.bz2 rails-2256f0bdb09a39a8752183e3422b76e1cd05df1a.zip |
Correct human file size examples [ci skip]
The `number_to_human_size` helpers in Action View and Active Support
calculate the "human size" with a base of 1024. The examples should
reflect that so they don't confuse the reader.
The updated documentations use the values from:
helper.number_to_human_size(1500)
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/number_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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. # |