summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorBurdetteLamar <[email protected]>2025-02-18 14:50:32 -0600
committerPeter Zhu <[email protected]>2025-02-19 09:46:04 -0500
commita46997a8f70c3f4640c07c719de82b8d612354cf ()
tree3f0e2fdec9f1b9c756a7e7adf398f1abf4003454 /hash.c
parent188b3375b0668c71fa46eba8e0fc7628867c148e (diff)
[DOC] Tweaks for Hash#except
Notes: Merged: https://.com/ruby/ruby/pull/12779
-rw-r--r--hash.c13
1 files changed, 8 insertions, 5 deletions
@@ -2665,13 +2665,16 @@ rb_hash_slice(int argc, VALUE *argv, VALUE hash)
/*
* call-seq:
- * hsh.except(*keys) -> a_hash
*
- * Returns a new +Hash+ excluding entries for the given +keys+:
- * h = { a: 100, b: 200, c: 300 }
- * h.except(:a) #=> {b: 200, c: 300}
*
- * Any given +keys+ that are not found are ignored.
*/
static VALUE