Bug #7571

RDoc documentation bug in Regexp#===

Added by Tsuyoshi Sawada over 1 year ago. Updated over 1 year ago.

[ruby-dev:46746]
Status:Closed
Priority:Normal
Assignee:Zachary Scott
Category:doc
Target version:2.0.0
ruby -v:1.9.3 Backport:

Description

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

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

but it is not a synonym for Regexp#=~' asRegexp#===' returns true' orfalse' and Regexp#=~' return an integer ornil`.

Associated revisions

Revision 38567
Added by Zachary Scott over 1 year ago

  • re.c (rbregeqq): doc: #=== is not a synonym for #=~, added example [Bug #7571]

History

#1 Updated by Usaku NAKAMURA over 1 year ago

  • Category set to doc
  • Status changed from Open to Assigned
  • Assignee set to Zachary Scott
  • Target version set to 2.0.0

#2 Updated by Zachary Scott over 1 year ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r38567.
Tsuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • re.c (rbregeqq): doc: #=== is not a synonym for #=~, added example [Bug #7571]

Also available in: Atom PDF