From: reed@... Date: 2015-08-09T13:04:50+00:00 Subject: [ruby-core:70283] [Ruby trunk - Bug #11424] [Open] Documentation bug: Module: Enumerable, detect Issue #11424 has been reported by Reed Mangino. ---------------------------------------- Bug #11424: Documentation bug: Module: Enumerable, detect https://bugs.ruby-lang.org/issues/11424 * Author: Reed Mangino * Status: Open * 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/