Skip to content

Regexp#== contains incorrect examples #20

@kyledecot

Description

@kyledecot

In both 1.9.3 and 2.0 documentation, the Regexp#== documentation contains invalid examples

http://www.ruby-doc.org/core-1.9.3/Regexp.html#method-i-3D-3D
http://www.ruby-doc.org/core-2.0/Regexp.html#method-i-3D-3D

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

The examples appear to be correct on github however

https://github.com/documenting-ruby/ruby/blob/trunk/re.c#L2609

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions