From dc96825d44aa16754cfc4ae46b49a68c0f22e379 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Tue, 9 Mar 2021 08:45:35 +0900 Subject: [PATCH] Fix `number_to_human_size`'s result [ci skip] --- guides/source/action_view_helpers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guides/source/action_view_helpers.md b/guides/source/action_view_helpers.md index 304ca6d02b..332b36ebcc 100644 --- a/guides/source/action_view_helpers.md +++ b/guides/source/action_view_helpers.md @@ -347,8 +347,8 @@ number_to_human(1234567) # => 1.23 Million Formats the bytes in size into a more understandable representation; useful for reporting file sizes to users. ```ruby -number_to_human_size(1234) # => 1.2 KB -number_to_human_size(1234567) # => 1.2 MB +number_to_human_size(1234) # => 1.21 KB +number_to_human_size(1234567) # => 1.18 MB ``` #### number_to_percentage