Skip to content

Commit 43a729b

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for Hash#replace
1 parent a870419 commit 43a729b

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
@@ -2971,8 +2971,11 @@ rb_hash_aset(VALUE hash, VALUE key, VALUE val)
29712971
*
29722972
* Replaces the entire contents of +self+ with the contents of +other_hash+;
29732973
* returns +self+:
2974+
*
29742975
* h = {foo: 0, bar: 1, baz: 2}
29752976
* h.replace({bat: 3, bam: 4}) # => {bat: 3, bam: 4}
2977+
*
2978+
* Related: see {Methods for Assigning}[rdoc-ref:Hash@Methods+for+Assigning].
29762979
*/
29772980

29782981
static VALUE

0 commit comments

Comments
 (0)