summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurdetteLamar <[email protected]>2025-02-26 10:27:13 -0600
committerPeter Zhu <[email protected]>2025-02-26 15:52:13 -0500
commit04e46bd75cae6b327ddf5498258389344bf9bfef ()
tree288d3ff0ef8c71adea597b87362bcafd31c688c6
parent8dce189078d609340d9a558a1e770a2002a32fa0 (diff)
[DOC] Tweaks for Hash#key
Notes: Merged: https://.com/ruby/ruby/pull/12817
-rw-r--r--hash.c3
1 files changed, 3 insertions, 0 deletions
@@ -2334,11 +2334,14 @@ key_i(VALUE key, VALUE value, VALUE arg)
*
* Returns the key for the first-found entry with the given +value+
* (see {Entry Order}[rdoc-ref:Hash@Entry+Order]):
* h = {foo: 0, bar: 2, baz: 2}
* h.key(0) # => :foo
* h.key(2) # => :bar
*
* Returns +nil+ if no such value is found.
*/
static VALUE