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 [...]"

Actions

Also available in: Atom PDF

Like0
Like0Like0