aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_support_core_extensions.md
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-08-24 19:19:56 +0900
committerGitHub <noreply@github.com>2017-08-24 19:19:56 +0900
commit906c1d8f59a4c37c8e3e2efe9f6f594aeb597d69 (patch)
tree926e1fb1d72f5abe66fda0a5379ddda6328d81c5 /guides/source/active_support_core_extensions.md
parent3e6d9f83e91285136fcd9daabf0b8c7d82d6c560 (diff)
parent566a056115d207fe2c83e7131bc196558331958d (diff)
downloadrails-906c1d8f59a4c37c8e3e2efe9f6f594aeb597d69.tar.gz
rails-906c1d8f59a4c37c8e3e2efe9f6f594aeb597d69.tar.bz2
rails-906c1d8f59a4c37c8e3e2efe9f6f594aeb597d69.zip
Merge pull request #30394 from ydakuka/fixing-indentation
Fix indentation [ci skip]
Diffstat (limited to 'guides/source/active_support_core_extensions.md')
-rw-r--r--guides/source/active_support_core_extensions.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md
index 209751ae8d..20d09e65b3 100644
--- a/guides/source/active_support_core_extensions.md
+++ b/guides/source/active_support_core_extensions.md
@@ -1989,7 +1989,7 @@ Extensions to `BigDecimal`
The method `to_s` provides a default specifier of "F". This means that a simple call to `to_s` will result in floating point representation instead of engineering notation:
```ruby
-BigDecimal.new(5.00, 6).to_s # => "5.0"
+BigDecimal.new(5.00, 6).to_s # => "5.0"
```
and that symbol specifiers are also supported:
@@ -3641,7 +3641,7 @@ Durations can be added to and subtracted from time objects:
now = Time.current
# => Mon, 09 Aug 2010 23:20:05 UTC +00:00
now + 1.year
-# => Tue, 09 Aug 2011 23:21:11 UTC +00:00
+# => Tue, 09 Aug 2011 23:21:11 UTC +00:00
now - 1.week
# => Mon, 02 Aug 2010 23:21:11 UTC +00:00
```