diff --git a/string.c b/string.c index 6d4b1ab166..6faeb5d00e 100644 --- a/string.c +++ b/string.c @@ -4951,7 +4951,7 @@ static VALUE get_pat(VALUE); * regexp = Regexp.new(pattern) * - Computes +matchdata+, which will be either a MatchData object or +nil+ * (see Regexp#match): - * matchdata = regexp.match(self) + * matchdata = regexp.match(self) * * With no block given, returns the computed +matchdata+: *