Permalink
Browse files

Merge pull request #8884 from mattdbridges/array-access-doc-fixes

Updating Array access docs more consistent
  • Loading branch information...
2 parents 34126fa + 139461f commit 8c2e4b664e1dfabe2e892c75f5b6038f86eab982 @guilleiguaran guilleiguaran committed Jan 10, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 activesupport/lib/active_support/core_ext/array/access.rb
@@ -21,28 +21,28 @@ def to(position)
# Equal to <tt>self[1]</tt>.
#
- # %w( a b c d e).second # => "b"
+ # %w( a b c d e ).second # => "b"
def second
self[1]
end
# Equal to <tt>self[2]</tt>.
#
- # %w( a b c d e).third # => "c"
+ # %w( a b c d e ).third # => "c"
def third
self[2]
end
# Equal to <tt>self[3]</tt>.
#
- # %w( a b c d e).fourth # => "d"
+ # %w( a b c d e ).fourth # => "d"
def fourth
self[3]
end
# Equal to <tt>self[4]</tt>.
#
- # %w( a b c d e).fifth # => "e"
+ # %w( a b c d e ).fifth # => "e"
def fifth
self[4]
end

0 comments on commit 8c2e4b6

Please sign in to comment.