Project

General

Profile

Bug #6529

missing words in description of =~ operator for Regexp

Added by nathanst (Nathan Stratton Treadway) about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
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) about 8 years ago

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

Updated by drbrain (Eric Hodel) about 8 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]

Also available in: Atom PDF