Skip to content

Commit a94f00f

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Add Related notes to a few methods
1 parent e3ad652 commit a94f00f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hash.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2850,6 +2850,8 @@ clear_i(VALUE key, VALUE value, VALUE dummy)
28502850
* clear -> self
28512851
*
28522852
* Removes all entries from +self+; returns emptied +self+.
2853+
*
2854+
* Related: see {Methods for Deleting}[rdoc-ref:Hash@Methods+for+Deleting].
28532855
*/
28542856

28552857
VALUE
@@ -4183,6 +4185,8 @@ assoc_i(VALUE key, VALUE val, VALUE arg)
41834185
* h.assoc(:bar) # => [:bar, 1]
41844186
*
41854187
* Returns +nil+ if the key is not found.
4188+
*
4189+
* Related: see {Methods for Fetching}[rdoc-ref:Hash@Methods+for+Fetching].
41864190
*/
41874191

41884192
static VALUE
@@ -4565,7 +4569,8 @@ any_p_i_pattern(VALUE key, VALUE value, VALUE arg)
45654569
* With both argument +entry+ and a block given,
45664570
* issues a warning and ignores the block.
45674571
*
4568-
* Related: Enumerable#any? (which this method overrides).
4572+
* Related: Enumerable#any? (which this method overrides);
4573+
* see also {Methods for Fetching}[rdoc-ref:Hash@Methods+for+Fetching].
45694574
*/
45704575

45714576
static VALUE

0 commit comments

Comments
 (0)