From a94f00f7c1e3f4037f50b5aaa001b3717ffca325 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Sat, 15 Feb 2025 10:32:58 -0600 Subject: [PATCH] [DOC] Add Related notes to a few methods --- hash.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hash.c b/hash.c index 1a17d15acf..ce3821f594 100644 --- a/hash.c +++ b/hash.c @@ -2850,6 +2850,8 @@ clear_i(VALUE key, VALUE value, VALUE dummy) * clear -> self * * Removes all entries from +self+; returns emptied +self+. + * + * Related: see {Methods for Deleting}[rdoc-ref:Hash@Methods+for+Deleting]. */ VALUE @@ -4183,6 +4185,8 @@ assoc_i(VALUE key, VALUE val, VALUE arg) * h.assoc(:bar) # => [:bar, 1] * * Returns +nil+ if the key is not found. + * + * Related: see {Methods for Fetching}[rdoc-ref:Hash@Methods+for+Fetching]. */ static VALUE @@ -4565,7 +4569,8 @@ any_p_i_pattern(VALUE key, VALUE value, VALUE arg) * With both argument +entry+ and a block given, * issues a warning and ignores the block. * - * Related: Enumerable#any? (which this method overrides). + * Related: Enumerable#any? (which this method overrides); + * see also {Methods for Fetching}[rdoc-ref:Hash@Methods+for+Fetching]. */ static VALUE