fix comment alignment

This commit is contained in:
Vijay Dev 2011-05-07 18:07:42 +05:30
parent 162bf8ffb1
commit 7194b393a6

@ -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 = {}, []