diff options
author | Xavier Noria <fxn@hashref.com> | 2009-12-17 00:02:15 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-12-17 00:02:15 +0100 |
commit | e9a23e4f2082a84f93e6dc1134cb6f9fd205ea35 (patch) | |
tree | 8db7ea0a28a401e75cf62db272866ca65c87f5c0 /railties/guides/source | |
parent | 64eee76541e56d1230f2fdcab318ea81bf786e80 (diff) | |
download | rails-e9a23e4f2082a84f93e6dc1134cb6f9fd205ea35.tar.gz rails-e9a23e4f2082a84f93e6dc1134cb6f9fd205ea35.tar.bz2 rails-e9a23e4f2082a84f93e6dc1134cb6f9fd205ea35.zip |
AS guide: fixes an example
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index 4b8e2ef691..8ba283122d 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -888,7 +888,7 @@ Similarly, +from+ returns the tail from the element at the passed index on: <ruby> %w(a b c d).from(2) # => %w(c d) %w(a b c d).from(10) # => nil -[].from(0) # => nil +[].from(0) # => [] </ruby> The methods +second+, +third+, +fourth+, and +fifth+ return the corresponding element (+first+ is builtin). Thanks to social wisdom and positive constructiveness all around, +forty_two+ is also available. |