diff options
| author | sato.kei <sato.kei@yamap.co.jp> | 2026-04-15 12:13:32 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-04-16 10:58:43 +0900 |
| commit | 8cc42fcfc29b80a50d1a3d2ceff0262e41ce0092 (patch) | |
| tree | d63f61f3adc94516625fecebd91bfa6f76e24db1 /doc | |
| parent | 9e5d1c370baf69b109442a168b6c18bf90f55ac9 (diff) | |
[DOC] Fix wrong hash key in calling_methods.rdoc example
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/syntax/calling_methods.rdoc | 2 |
1 files changed, 1 insertions, 1 deletions
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 <code>*</code> operator, <code>**</code> raises an error when used on an object that doesn't respond to <code>#to_hash</code>. The one exception is |
