Forum: Ruby-dev [ruby-trunk - Bug #7571][Open] RDoc documentation bug in Regexp#===

Posted by Tsuyoshi S. (tsuyoshi_s)
on 2012-12-16 02:57
(Received via mailing list)
Issue #7571 has been reported by sawa (Tsuyoshi Sawada).

----------------------------------------
Bug #7571: RDoc documentation bug in Regexp#===
https://bugs.ruby-lang.org/issues/7571

Author: sawa (Tsuyoshi Sawada)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: 1.9.3


RDoc documentation for `Regexp#===' says:

    Case Equality—Synonym for Regexp#=~ used in case statements.

but it is not a synonym for `Regexp#=~' as `Regexp#===' returns `true' 
or `false' and `Regexp#=~' return an integer or `nil`.
Posted by usa (Usaku NAKAMURA) (Guest)
on 2012-12-21 15:16
(Received via mailing list)
Issue #7571 has been updated by usa (Usaku NAKAMURA).

Category set to DOC
Status changed from Open to Assigned
Assignee set to zzak (Zachary Scott)
Target version set to 2.0.0


----------------------------------------
Bug #7571: RDoc documentation bug in Regexp#===
https://bugs.ruby-lang.org/issues/7571#change-34984

Author: sawa (Tsuyoshi Sawada)
Status: Assigned
Priority: Normal
Assignee: zzak (Zachary Scott)
Category: DOC
Target version: 2.0.0
ruby -v: 1.9.3


RDoc documentation for `Regexp#===' says:

    Case Equality—Synonym for Regexp#=~ used in case statements.

but it is not a synonym for `Regexp#=~' as `Regexp#===' returns `true' 
or `false' and `Regexp#=~' return an integer or `nil`.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.