mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Correct output in calling_methods.rdoc
This commit is contained in:
parent
f9aadc62ed
commit
482b5307f2
Notes:
git
2025-03-13 04:43:51 +00:00
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue