Skip to content

Commit 1de6133

Browse files
committed
[DOC] Fix hash style in Hash#except
1 parent 3dd928c commit 1de6133

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hash.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2644,9 +2644,9 @@ rb_hash_slice(int argc, VALUE *argv, VALUE hash)
26442644
* Returns a copy of +self+ that excludes entries for the given +keys+;
26452645
* any +keys+ that are not found are ignored:
26462646
*
2647-
* h = {foo:0, bar: 1, baz: 2} # => {:foo=>0, :bar=>1, :baz=>2}
2648-
* h.except(:baz, :foo) # => {:bar=>1}
2649-
* h.except(:bar, :nosuch) # => {:foo=>0, :baz=>2}
2647+
* h = {foo:0, bar: 1, baz: 2} # => {foo: 0, bar: 1, baz: 2}
2648+
* h.except(:baz, :foo) # => {bar: 1}
2649+
* h.except(:bar, :nosuch) # => {foo: 0, baz: 2}
26502650
*
26512651
* Related: see {Methods for Deleting}[rdoc-ref:Hash@Methods+for+Deleting].
26522652
*/

0 commit comments

Comments
 (0)