From 8cc42fcfc29b80a50d1a3d2ceff0262e41ce0092 Mon Sep 17 00:00:00 2001 From: "sato.kei" Date: Wed, 15 Apr 2026 12:13:32 +0900 Subject: [DOC] Fix wrong hash key in calling_methods.rdoc example --- doc/syntax/calling_methods.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/syntax/calling_methods.rdoc b/doc/syntax/calling_methods.rdoc index 76babcc3dc..a24c5fbf1f 100644 --- a/doc/syntax/calling_methods.rdoc +++ b/doc/syntax/calling_methods.rdoc @@ -425,7 +425,7 @@ as keyword arguments: name = Name.new('Jane Doe') p(**name) - # Prints: {name: "Jane", last: "Doe"} + # Prints: {first: "Jane", last: "Doe"} Unlike * operator, ** raises an error when used on an object that doesn't respond to #to_hash. The one exception is -- cgit v1.2.3