Project

General

Profile

Bug #7571

RDoc documentation bug in Regexp#===

Added by Tsuyoshi Sawada about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
ruby -v:
1.9.3
Backport:
2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
[ruby-dev:46746]

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 about 3 years ago

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

Revision 38567
Added by Zachary Scott about 3 years ago

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

History

#1 [ruby-dev:46795] Updated by Usaku NAKAMURA about 3 years 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 about 3 years 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 (rb_reg_eqq): doc: #=== is not a synonym for #=~, added example [Bug #7571]

Also available in: Atom PDF