提交 7194b393 编写于 作者: V Vijay Dev

fix comment alignment

上级 162bf8ff
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 = {}, []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册