From: ruby-core@... Date: 2015-08-10T14:35:34+00:00 Subject: [ruby-core:70303] [Ruby trunk - Bug #11424] [Rejected] Documentation bug: Module: Enumerable, detect Issue #11424 has been updated by Marc-Andre Lafortune. Status changed from Open to Rejected `find` and `detect` are aliases. They share their documentation. ---------------------------------------- Bug #11424: Documentation bug: Module: Enumerable, detect https://bugs.ruby-lang.org/issues/11424#change-53723 * Author: Reed Mangino * Status: Rejected * Priority: Normal * Assignee: * ruby -v: * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- http://ruby-doc.org/core-2.2.2/Enumerable.html#method-i-detect In the second line of the example code find() is called instead of detect(). Both lines should call detect(). -- https://bugs.ruby-lang.org/