From 3b239d2480123046a59a75f1089ab58d192b9c57 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Sun, 19 Feb 2023 20:16:04 +0000 Subject: Remove (newly unneeded) remarks about aliases --- struct.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'struct.c') diff --git a/struct.c b/struct.c index 35715b2258..86f98dde5a 100644 --- a/struct.c +++ b/struct.c @@ -596,8 +596,6 @@ rb_struct_define_under(VALUE outer, const char *name, ...) * Foo.new(foo: 0, bar: 1, baz: 2) * # Raises ArgumentError: unknown keywords: baz * - * \Method ::[] is an alias for method ::new. - * * - \Method :inspect returns a string representation of the subclass: * * Foo.inspect @@ -1029,8 +1027,6 @@ inspect_struct(VALUE s, VALUE prefix, int recur) * joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) * joe.inspect # => "#" * - * Struct#to_s is an alias for Struct#inspect. - * */ static VALUE @@ -1049,8 +1045,6 @@ rb_struct_inspect(VALUE s) * joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) * joe.to_a # => ["Joe Smith", "123 Maple, Anytown NC", 12345] * - * Struct#values and Struct#deconstruct are aliases for Struct#to_a. - * * Related: #members. */ @@ -1372,8 +1366,6 @@ rb_struct_values_at(int argc, VALUE *argv, VALUE s) * a # => [12345] * * With no block given, returns an Enumerator. - * - * Struct#filter is an alias for Struct#select. */ static VALUE @@ -1532,7 +1524,6 @@ rb_struct_eql(VALUE s, VALUE s2) * joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345) * joe.size #=> 3 * - * Struct#length is an alias for Struct#size. */ VALUE -- cgit v1.2.1