1
0
Fork 0
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:
Espartaco Palma 2019-06-20 22:46:24 -07:00 committed by Nobuyoshi Nakada
parent fde842fec0
commit 4149fd6078
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

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