From 98fbebf110f0802fd6c72e48eb9d9a6c40878e40 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 21 Dec 2022 23:59:34 +0900 Subject: [DOC] Fix typo --- string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index f966384d18..6fd165cd5a 100644 --- a/string.c +++ b/string.c @@ -4462,7 +4462,7 @@ static VALUE get_pat(VALUE); * match(pattern, offset = 0) -> matchdata or nil * match(pattern, offset = 0) {|matchdata| ... } -> object * - * Returns a \Matchdata object (or +nil+) based on +self+ and the given +pattern+. + * Returns a \MatchData object (or +nil+) based on +self+ and the given +pattern+. * * Note: also updates Regexp@Special+global+variables. * @@ -4518,7 +4518,7 @@ rb_str_match_m(int argc, VALUE *argv, VALUE str) * Computes +regexp+ by converting +pattern+ (if not already a \Regexp). * regexp = Regexp.new(pattern) * - * Returns +true+ if self+.match(regexp) returns a \Matchdata object, + * Returns +true+ if self+.match(regexp) returns a \MatchData object, * +false+ otherwise: * * 'foo'.match?(/o/) # => true -- cgit v1.2.1