summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-21 23:59:34 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-22 00:01:18 +0900
commit98fbebf110f0802fd6c72e48eb9d9a6c40878e40 (patch)
treeb625d5ad8ea7c90b94c3c295f9cabaa3f3f8702d /string.c
parent172dc98c94d1b0356c14e60dfcc4ba1ed2c7ed16 (diff)
downloadruby-98fbebf110f0802fd6c72e48eb9d9a6c40878e40.tar.gz
[DOC] Fix typo
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 2 insertions, 2 deletions
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 <tt>self+.match(regexp)</tt> returns a \Matchdata object,
+ * Returns +true+ if <tt>self+.match(regexp)</tt> returns a \MatchData object,
* +false+ otherwise:
*
* 'foo'.match?(/o/) # => true