summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2023-06-20 08:28:21 -0500
committerGitHub <noreply@github.com>2023-06-20 09:28:21 -0400
commit932dd9f10e684fa99b059054fbc934607d85b45a (patch)
treed6324bbcd2eeba6eb8a69af68235235551f9ca98 /string.c
parent6be402e172a537000de58a28af389cb55dd62ec8 (diff)
[DOC] Regexp doc (#7923)
Notes
Notes: Merged-By: peterzhu2118 <peter@peterzhu.ca>
Diffstat (limited to 'string.c')
-rw-r--r--string.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/string.c b/string.c
index ad502a1920..d10eb236c9 100644
--- a/string.c
+++ b/string.c
@@ -4348,7 +4348,7 @@ rb_str_byterindex_m(int argc, VALUE *argv, VALUE str)
* 'foo' =~ /o/ # => 1
* 'foo' =~ /x/ # => nil
*
- * Note: also updates Regexp@Special+global+variables.
+ * Note: also updates Regexp@Global+Variables.
*
* If the given +object+ is not a \Regexp, returns the value
* returned by <tt>object =~ self</tt>.
@@ -4390,7 +4390,7 @@ static VALUE get_pat(VALUE);
*
* Returns a \MatchData object (or +nil+) based on +self+ and the given +pattern+.
*
- * Note: also updates Regexp@Special+global+variables.
+ * Note: also updates Regexp@Global+Variables.
*
* - Computes +regexp+ by converting +pattern+ (if not already a \Regexp).
* regexp = Regexp.new(pattern)
@@ -4439,7 +4439,7 @@ rb_str_match_m(int argc, VALUE *argv, VALUE str)
*
* Returns +true+ or +false+ based on whether a match is found for +self+ and +pattern+.
*
- * Note: does not update Regexp@Special+global+variables.
+ * Note: does not update Regexp@Global+Variables.
*
* Computes +regexp+ by converting +pattern+ (if not already a \Regexp).
* regexp = Regexp.new(pattern)