Skip to content

Commit 8cc42fc

Browse files
JohnnyKeihsbt
authored andcommitted
[DOC] Fix wrong hash key in calling_methods.rdoc example
1 parent 9e5d1c3 commit 8cc42fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/syntax/calling_methods.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ as keyword arguments:
425425

426426
name = Name.new('Jane Doe')
427427
p(**name)
428-
# Prints: {name: "Jane", last: "Doe"}
428+
# Prints: {first: "Jane", last: "Doe"}
429429

430430
Unlike <code>*</code> operator, <code>**</code> raises an error when used on an
431431
object that doesn't respond to <code>#to_hash</code>. The one exception is

0 commit comments

Comments
 (0)