aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorClaudio B. <claudiob@users.noreply.github.com>2015-09-21 23:43:40 -0700
committerClaudio B. <claudiob@users.noreply.github.com>2015-09-21 23:43:40 -0700
commit2a7e8f54c66dbd65822f2a7135546a240426b631 (patch)
tree02c1899ef8510360f8bba1ff2249cf3e9f8f7b55 /activesupport/lib
parenta29e8a459369cdf6bbbd012ac207ea68a90561d0 (diff)
parentf077cc6f41cdedf1d5cdeb994c9fa3335fa51126 (diff)
downloadrails-2a7e8f54c66dbd65822f2a7135546a240426b631.tar.gz
rails-2a7e8f54c66dbd65822f2a7135546a240426b631.tar.bz2
rails-2a7e8f54c66dbd65822f2a7135546a240426b631.zip
Merge pull request #21710 from amitsuroliya/correct_result
Correcting output of `number_to_percentage` example in `number_helper…
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/number_helper.rb2
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 9762d95145..504f96961a 100644
--- a/activesupport/lib/active_support/number_helper.rb
+++ b/activesupport/lib/active_support/number_helper.rb
@@ -118,7 +118,7 @@ module ActiveSupport
# number_to_percentage(1000, locale: :fr) # => 1 000,000%
# number_to_percentage:(1000, precision: nil) # => 1000%
# number_to_percentage('98a') # => 98a%
- # number_to_percentage(100, format: '%n %') # => 100 %
+ # number_to_percentage(100, format: '%n %') # => 100.000 %
def number_to_percentage(number, options = {})
NumberToPercentageConverter.convert(number, options)
end