Project

General

Profile

Actions

Bug #6529

closed

missing words in description of =~ operator for Regexp

Added by nathanst (Nathan Stratton Treadway) over 12 years ago. Updated over 12 years ago.

Status:
Closed
Target version:
-
ruby -v:
1.9.3
Backport:
[ruby-core:45378]

Description

Currently the Regexp class documentation contains the following: "=~ is Ruby's basic pattern-matching operator. When one operand is a regular expression and is a string (this operator is equivalently defined by Regexp and String). If a match is found [...]"

"and is a string" seems to have be missing a word or two....would it make sense to change that second sentence to something like the following?: "When one operand is a regular expression and the other is a string, then the regexp is used as a pattern to match against the string. (This operator is equivalently defined by Regexp and String, and order in which the operands appear does not matter.) If a match is found [...]"

Updated by drbrain (Eric Hodel) over 12 years ago

  • Category set to doc
  • Status changed from Open to Assigned
  • Assignee set to drbrain (Eric Hodel)
Actions #2

Updated by drbrain (Eric Hodel) over 12 years ago

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

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


  • doc/re.rdoc: Completed wording in the description of the =~ operator.
    [ruby-trunk - Bug #6529]
Actions

Also available in: Atom PDF

Like0
Like0Like0