From 1de6133825862ef987160a5ba39f5af685610f4e Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Sat, 24 Jan 2026 09:37:49 -0500 Subject: [PATCH] [DOC] Fix hash style in Hash#except --- hash.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hash.c b/hash.c index 1dabdfb4a2326c..07eeb779e9f197 100644 --- a/hash.c +++ b/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]. */