Permalink
Browse files

AS guide: fixes an example

  • Loading branch information...
1 parent 64eee76 commit e9a23e4f2082a84f93e6dc1134cb6f9fd205ea35 @fxn fxn committed Dec 16, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 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.

0 comments on commit e9a23e4

Please sign in to comment.