From 43a729b1be1c03499e1fa8475364708f4a1ca39e Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Tue, 25 Feb 2025 08:57:31 -0600 Subject: [PATCH] [DOC] Tweaks for Hash#replace --- hash.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hash.c b/hash.c index 3eb2e3eadc..74ab772705 100644 --- a/hash.c +++ b/hash.c @@ -2971,8 +2971,11 @@ rb_hash_aset(VALUE hash, VALUE key, VALUE val) * * Replaces the entire contents of +self+ with the contents of +other_hash+; * returns +self+: + * * h = {foo: 0, bar: 1, baz: 2} * h.replace({bat: 3, bam: 4}) # => {bat: 3, bam: 4} + * + * Related: see {Methods for Assigning}[rdoc-ref:Hash@Methods+for+Assigning]. */ static VALUE