summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authorBurdetteLamar <[email protected]>2024-08-31 18:11:50 +0100
committerPeter Zhu <[email protected]>2024-09-10 14:00:00 -0400
commitccd35eaecf7604a9c2edc4a6d9eab5fa8c527cab (patch)
tree57679aa950bbffa5d970e645c801bfe781c7621d /struct.c
parent22f12b0a62c512f115cd60d4192e53921b11f0c7 (diff)
[DOC] Rationalize aliases in What's Here
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11518
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/struct.c b/struct.c
index 544228f76b..3e2dff161f 100644
--- a/struct.c
+++ b/struct.c
@@ -2131,7 +2131,7 @@ rb_data_inspect(VALUE s)
* === Methods for Querying
*
* - #hash: Returns the integer hash code.
- * - #length, #size: Returns the number of members.
+ * - #size (aliased as #length): Returns the number of members.
*
* === Methods for Comparing
*
@@ -2143,13 +2143,13 @@ rb_data_inspect(VALUE s)
* === Methods for Fetching
*
* - #[]: Returns the value associated with a given member name.
- * - #to_a, #values, #deconstruct: Returns the member values in +self+ as an array.
+ * - #to_a (aliased as #values, #deconstruct): Returns the member values in +self+ as an array.
* - #deconstruct_keys: Returns a hash of the name/value pairs
* for given member names.
* - #dig: Returns the object in nested objects that is specified
* by a given member name and additional arguments.
* - #members: Returns an array of the member names.
- * - #select, #filter: Returns an array of member values from +self+,
+ * - #select (aliased as #filter): Returns an array of member values from +self+,
* as selected by the given block.
* - #values_at: Returns an array containing values for given member names.
*
@@ -2164,7 +2164,7 @@ rb_data_inspect(VALUE s)
*
* === Methods for Converting
*
- * - #inspect, #to_s: Returns a string representation of +self+.
+ * - #inspect (aliased as #to_s): Returns a string representation of +self+.
* - #to_h: Returns a hash of the member name/value pairs in +self+.
*
*/