mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[DOC] Fix hash style in Hash#except
This commit is contained in:
parent
3dd928c284
commit
1de6133825
Notes:
git
2026-01-24 14:44:21 +00:00
6
hash.c
6
hash.c
@ -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].
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user