[DOC] Correct output in calling_methods.rdoc

This commit is contained in:
Yutaro Ohno 2025-03-12 15:48:56 +09:00 committed by Nobuyoshi Nakada
parent f9aadc62ed
commit 482b5307f2
Notes: git 2025-03-13 04:43:51 +00:00

View file

@ -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