missing words in description of =~ operator for Regexp
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
- 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]