Issue #6415 has been updated by drbrain (Eric Hodel).

Status changed from Open to Assigned
Assignee set to drbrain (Eric Hodel)


----------------------------------------
Bug #6415: wrong documentation for Regex#==/eql?
https://bugs.ruby-lang.org/issues/6415#change-26542

Author: john_firebaugh (John Firebaugh)
Status: Assigned
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: DOC
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]


The documentation states that "Two regexps are equal if their patterns are identical, they have the same character set code, and their casefold? values are the same" and gives the following example:

    /abc/  == /abc/n   #=> false

In fact, this returns true -- the /n character set code option is a special case.


-- 
http://bugs.ruby-lang.org/