summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMSP-Greg <Greg.mpls@gmail.com>2025-10-02 18:38:22 -0500
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2025-10-03 11:08:45 +0900
commitb92db45b98f1deaa43efbbef11d5b6f213eeb65e (patch)
treef4115cf0cba26db6b40cb63f38b8dd0ad3b86aa6
parentff8975dfc8732b3530dc04a22cd703abb5da7c37 (diff)
[DOC] hash.c - fix 3 class doc typos
-rw-r--r--hash.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hash.c b/hash.c
index 8b1d5fde8b..7b523ba235 100644
--- a/hash.c
+++ b/hash.c
@@ -6912,7 +6912,7 @@ static const rb_data_type_t env_data_type = {
* A \Hash object maps each of its unique keys to a specific value.
*
* A hash has certain similarities to an Array, but:
-
+ *
* - An array index is always an integer.
* - A hash key can be (almost) any object.
*
@@ -7313,7 +7313,7 @@ static const rb_data_type_t env_data_type = {
* - #keys: Returns an array containing all keys in +self+.
* - #rassoc: Returns a 2-element array consisting of the key and value
* of the first-found entry having a given value.
- * - #values: Returns an array containing all values in +self+/
+ * - #values: Returns an array containing all values in +self+.
* - #values_at: Returns an array containing values for given keys.
*
* ==== Methods for Assigning
@@ -7362,7 +7362,6 @@ static const rb_data_type_t env_data_type = {
*
* ==== Methods for Transforming Keys and Values
*
- * - #flatten!: Returns +self+, flattened.
* - #invert: Returns a hash with the each key-value pair inverted.
* - #transform_keys: Returns a copy of +self+ with modified keys.
* - #transform_keys!: Modifies keys in +self+