summaryrefslogtreecommitdiff
path: root/string.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 /string.c
parent3d53827130e9f3792e80e9a947d5a0d604aa836b (diff)
downloadruby-3b239d2480123046a59a75f1089ab58d192b9c57.tar.gz
Remove (newly unneeded) remarks about aliases
Diffstat (limited to 'string.c')
-rw-r--r--string.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/string.c b/string.c
index 113265a8f9..e5af3f0c82 100644
--- a/string.c
+++ b/string.c
@@ -2997,7 +2997,6 @@ str_uplus(VALUE str)
* while +dedup+ is better suitable for using the method in chains
* of calculations:
*
- *
* @url_list.concat(urls.map(&:dedup))
*
*/
@@ -4802,7 +4801,6 @@ static VALUE str_succ(VALUE str);
*
* ''.succ # => ""
*
- * String#next is an alias for String#succ.
*/
VALUE
@@ -4907,8 +4905,6 @@ str_succ(VALUE str)
* succ! -> self
*
* Equivalent to String#succ, but modifies +self+ in place; returns +self+.
- *
- * String#next! is an alias for String#succ!.
*/
static VALUE
@@ -5451,8 +5447,6 @@ rb_str_aset(VALUE str, VALUE indx, VALUE val)
* s['lly'] = 'ncial' # => "ncial"
* s # => "financial"
*
- * String#slice is an alias for String#[].
- *
*/
static VALUE
@@ -6588,9 +6582,6 @@ rb_str_to_f(VALUE str)
*
* Returns +self+ if +self+ is a \String,
* or +self+ converted to a \String if +self+ is a subclass of \String.
- *
- * String#to_str is an alias for String#to_s.
- *
*/
static VALUE
@@ -11464,9 +11455,6 @@ rb_str_unicode_normalized_p(int argc, VALUE *argv, VALUE str)
* symbol == object -> true or false
*
* Returns +true+ if +object+ is the same object as +self+, +false+ otherwise.
- *
- * Symbol#=== is an alias for Symbol#==.
- *
*/
#define sym_equal rb_obj_equal
@@ -11583,8 +11571,6 @@ sym_inspect(VALUE sym)
*
* :foo.to_s # => "foo"
*
- * Symbol#id2name is an alias for Symbol#to_s.
- *
* Related: Symbol#inspect, Symbol#name.
*/
@@ -11614,8 +11600,6 @@ rb_sym_proc_call(ID mid, int argc, const VALUE *argv, int kw_splat, VALUE passed
*
* :foo.succ # => :fop
*
- * Symbol#next is an alias for Symbol#succ.
- *
* Related: String#succ.
*/
@@ -11757,9 +11741,6 @@ sym_aref(int argc, VALUE *argv, VALUE sym)
* length -> integer
*
* Equivalent to <tt>self.to_s.length</tt>; see String#length.
- *
- * Symbol#size is an alias for Symbol#length.
- *
*/
static VALUE