diff options
author | Yutaro Ohno <[email protected]> | 2025-03-12 15:48:56 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-03-13 13:43:36 +0900 |
commit | 482b5307f2efa1c6b2af5c3e8641b4ba59841127 (patch) | |
tree | ca4c17d1605bbe00863303f06e163d6b1389ac64 /doc/syntax/calling_methods.rdoc | |
parent | f9aadc62ed40d9b68e2ca64b1c0ee56f0c2b3322 (diff) |
[DOC] Correct output in calling_methods.rdoc
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12912
Diffstat (limited to 'doc/syntax/calling_methods.rdoc')
-rw-r--r-- | doc/syntax/calling_methods.rdoc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/syntax/calling_methods.rdoc b/doc/syntax/calling_methods.rdoc index 63a1b43781..bf5916e99a 100644 --- a/doc/syntax/calling_methods.rdoc +++ b/doc/syntax/calling_methods.rdoc @@ -291,14 +291,14 @@ override local arguments outside the block in the caller's scope: This prints: hello main this is block - place is world + place is: world So the +place+ variable in the block is not the same +place+ variable as outside the block. Removing <code>; place</code> from the block arguments gives this result: hello main this is block - place is block + place is: block === Unpacking Positional Arguments |