diff options
author | Agis Anastasopoulos <corestudiosinc@gmail.com> | 2012-11-15 23:31:55 +0200 |
---|---|---|
committer | Agis Anastasopoulos <corestudiosinc@gmail.com> | 2012-11-15 23:31:55 +0200 |
commit | 25ac03cd7325d0d73309f161b706ad83de25ad64 (patch) | |
tree | 1d72cec736830bbcd47b56294d12851e5a8a48a8 /guides/source | |
parent | 000121e87e4e0a3912a2f5d4edfff7bbeb71078f (diff) | |
download | rails-25ac03cd7325d0d73309f161b706ad83de25ad64.tar.gz rails-25ac03cd7325d0d73309f161b706ad83de25ad64.tar.bz2 rails-25ac03cd7325d0d73309f161b706ad83de25ad64.zip |
Properly align some example comments
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_support_core_extensions.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index 779fd2ee61..9b93a94cf1 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -1913,8 +1913,8 @@ Produce a string representation of a number as a telephone number: Produce a string representation of a number as currency: ```ruby -1234567890.50.to_s(:currency) # => $1,234,567,890.50 -1234567890.506.to_s(:currency) # => $1,234,567,890.51 +1234567890.50.to_s(:currency) # => $1,234,567,890.50 +1234567890.506.to_s(:currency) # => $1,234,567,890.51 1234567890.506.to_s(:currency, precision: 3) # => $1,234,567,890.506 ``` @@ -1934,8 +1934,8 @@ Produce a string representation of a number as a percentage: Produce a string representation of a number in delimited form: ```ruby -12345678.to_s(:delimited) # => 12,345,678 -12345678.05.to_s(:delimited) # => 12,345,678.05 +12345678.to_s(:delimited) # => 12,345,678 +12345678.05.to_s(:delimited) # => 12,345,678.05 12345678.to_s(:delimited, delimiter: ".") # => 12.345.678 12345678.to_s(:delimited, delimiter: ",") # => 12,345,678 12345678.05.to_s(:delimited, separator: " ") # => 12,345,678 05 @@ -1944,7 +1944,7 @@ Produce a string representation of a number in delimited form: Produce a string representation of a number rounded to a precision: ```ruby -111.2345.to_s(:rounded) # => 111.235 +111.2345.to_s(:rounded) # => 111.235 111.2345.to_s(:rounded, precision: 2) # => 111.23 13.to_s(:rounded, precision: 5) # => 13.00000 389.32314.to_s(:rounded, precision: 0) # => 389 |