Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix comment alignment

  • Loading branch information...
commit 7194b393a611727fb36e8f586910e75db1bae746 1 parent 162bf8f
@vijaydev vijaydev authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 activesupport/lib/active_support/core_ext/array/uniq_by.rb
View
5 activesupport/lib/active_support/core_ext/array/uniq_by.rb
@@ -1,8 +1,7 @@
class Array
- # Return an unique array based on the criteria given as a proc.
+ # Returns an unique array based on the criteria given as a +Proc+.
#
- # [1, 2, 3, 4].uniq_by { |i| i.odd? }
- # # => [1, 2]
+ # [1, 2, 3, 4].uniq_by { |i| i.odd? } # => [1, 2]
#
def uniq_by
hash, array = {}, []
Please sign in to comment.
Something went wrong with that request. Please try again.