Skip to content

Commit 04e46bd

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for Hash#key
1 parent 8dce189 commit 04e46bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hash.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,11 +2334,14 @@ key_i(VALUE key, VALUE value, VALUE arg)
23342334
*
23352335
* Returns the key for the first-found entry with the given +value+
23362336
* (see {Entry Order}[rdoc-ref:Hash@Entry+Order]):
2337+
*
23372338
* h = {foo: 0, bar: 2, baz: 2}
23382339
* h.key(0) # => :foo
23392340
* h.key(2) # => :bar
23402341
*
23412342
* Returns +nil+ if no such value is found.
2343+
*
2344+
* Related: see {Methods for Fetching}[rdoc-ref:Hash@Methods+for+Fetching].
23422345
*/
23432346

23442347
static VALUE

0 commit comments

Comments
 (0)