mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix small typo on block_scanf example [ci-skip]
Closes: https://github.com/ruby/ruby/pull/2247
This commit is contained in:
parent
fde842fec0
commit
4149fd6078
1 changed files with 1 additions and 1 deletions
|
@ -742,7 +742,7 @@ class String
|
|||
# If a block is given, the value from that is returned from
|
||||
# the yield is added to an output array.
|
||||
#
|
||||
# "123 456".block_scanf("%d) do |digit,| # the ',' unpacks the Array
|
||||
# "123 456".block_scanf("%d") do |digit,| # the ',' unpacks the Array
|
||||
# digit + 100
|
||||
# end
|
||||
# # => [223, 556]
|
||||
|
|
Loading…
Reference in a new issue