Skip to content

Commit

Permalink
Do not duplicate stdlib documentation, show link instead
Browse files Browse the repository at this point in the history
  • Loading branch information
rgould committed Jul 19, 2020
1 parent 1d7a873 commit b58cf1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/mongoid/criteria.rb
Expand Up @@ -62,10 +62,9 @@ def ==(other)
# If the arguments match Enumerable#find signature, that will be invoked.
# Otherwise Findable#find will be invoked
#
# The signature of Enumerable#find:
# The signature of Enumerable#find can be found in the stdlib documentation:
#
# find(ifnone = nil) { |obj| block } → obj or nil
# find(ifnone = nil) → an_enumerator
# https://ruby-doc.org/core/Enumerable.html
#
# @example Find using a block, invokes Enumerable#find
# criteria.find { |item| item.name == "Depeche Mode" }
Expand Down

0 comments on commit b58cf1d

Please sign in to comment.