aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-08-24 17:48:40 +0900
committerGitHub <noreply@github.com>2017-08-24 17:48:40 +0900
commit3e6d9f83e91285136fcd9daabf0b8c7d82d6c560 (patch)
treebe8102960fdb65718b2ba01683d0bb9debe5cbba /guides/source
parentac1a6c6f52c3f1672711d21169165b18f9a91c84 (diff)
parent344b0f6e6400d14647e1405e72dc923366d932e6 (diff)
downloadrails-3e6d9f83e91285136fcd9daabf0b8c7d82d6c560.tar.gz
rails-3e6d9f83e91285136fcd9daabf0b8c7d82d6c560.tar.bz2
rails-3e6d9f83e91285136fcd9daabf0b8c7d82d6c560.zip
Merge pull request #30393 from ydakuka/patch-1
Update active_support_core_extensions.md [ci skip]
Diffstat (limited to 'guides/source')
-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 4c37f6aba9..209751ae8d 100644
--- a/guides/source/active_support_core_extensions.md
+++ b/guides/source/active_support_core_extensions.md
@@ -1709,7 +1709,7 @@ Specifically performs these transformations:
* Capitalizes the first word.
The capitalization of the first word can be turned off by setting the
-+:capitalize+ option to false (default is true).
+`:capitalize` option to false (default is true).
```ruby
"name".humanize # => "Name"
@@ -2359,7 +2359,7 @@ This method is similar in purpose to `Kernel#Array`, but there are some differen
* If the argument responds to `to_ary` the method is invoked. `Kernel#Array` moves on to try `to_a` if the returned value is `nil`, but `Array.wrap` returns an array with the argument as its single element right away.
* If the returned value from `to_ary` is neither `nil` nor an `Array` object, `Kernel#Array` raises an exception, while `Array.wrap` does not, it just returns the value.
-* It does not call `to_a` on the argument, if the argument does not respond to +to_ary+ it returns an array with the argument as its single element.
+* It does not call `to_a` on the argument, if the argument does not respond to `to_ary` it returns an array with the argument as its single element.
The last point is particularly worth comparing for some enumerables: