[DOC] Fix hash style in Hash#except

This commit is contained in:
Peter Zhu 2026-01-24 09:37:49 -05:00
parent 3dd928c284
commit 1de6133825
Notes: git 2026-01-24 14:44:21 +00:00

6
hash.c
View File

@ -2644,9 +2644,9 @@ rb_hash_slice(int argc, VALUE *argv, VALUE hash)
* Returns a copy of +self+ that excludes entries for the given +keys+;
* any +keys+ that are not found are ignored:
*
* h = {foo:0, bar: 1, baz: 2} # => {:foo=>0, :bar=>1, :baz=>2}
* h.except(:baz, :foo) # => {:bar=>1}
* h.except(:bar, :nosuch) # => {:foo=>0, :baz=>2}
* h = {foo:0, bar: 1, baz: 2} # => {foo: 0, bar: 1, baz: 2}
* h.except(:baz, :foo) # => {bar: 1}
* h.except(:bar, :nosuch) # => {foo: 0, baz: 2}
*
* Related: see {Methods for Deleting}[rdoc-ref:Hash@Methods+for+Deleting].
*/