summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2023-02-19 20:16:04 +0000
committerJeremy Evans <code@jeremyevans.net>2023-02-19 14:26:34 -0800
commit3b239d2480123046a59a75f1089ab58d192b9c57 (patch)
treea7015491da2508153db26251ad30ac39d6d8a6a8 /re.c
parent3d53827130e9f3792e80e9a947d5a0d604aa836b (diff)
downloadruby-3b239d2480123046a59a75f1089ab58d192b9c57.tar.gz
Remove (newly unneeded) remarks about aliases
Diffstat (limited to 're.c')
-rw-r--r--re.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/re.c b/re.c
index 3b06caa1c4..975dee5940 100644
--- a/re.c
+++ b/re.c
@@ -1169,8 +1169,6 @@ match_names(VALUE match)
* # => #<MatchData "HX1138" 1:"H" 2:"X" 3:"113" 4:"8">
* m.size # => 5
*
- * MatchData#length is an alias for MatchData.size.
- *
*/
static VALUE
@@ -3413,8 +3411,6 @@ reg_hash(VALUE re)
* /foo/ == Regexp.new('food') # => false
* /foo/ == Regexp.new("abc".force_encoding("euc-jp")) # => false
*
- * Regexp#eql? is an alias for Regexp#==.
- *
*/
VALUE
@@ -3465,9 +3461,6 @@ match_hash(VALUE match)
* Returns +true+ if +object+ is another \MatchData object
* whose target string, regexp, match, and captures
* are the same as +self+, +false+ otherwise.
- *
- * MatchData#eql? is an alias for MatchData#==.
- *
*/
static VALUE
@@ -3895,8 +3888,6 @@ void rb_warn_deprecated_to_remove(const char *removal, const char *fmt, const ch
* r3 = Regexp.new(r, timeout: 3.14) # => /foo/m
* r3.timeout # => 3.14
*
- * Regexp.compile is an alias for Regexp.new.
- *
*/
static VALUE
@@ -4090,8 +4081,6 @@ rb_reg_quote(VALUE str)
* r = Regexp.new(Regexp.escape(s)) # => /\\\\\\\*\\\?\\\{\\\}\\\./
* r.match(s) # => #<MatchData "\\\\\\*\\?\\{\\}\\.">
*
- * Regexp.quote is an alias for Regexp.escape.
- *
*/
static VALUE