diff --git a/lib/scanf.rb b/lib/scanf.rb index 495f8705a4..42fa548025 100644 --- a/lib/scanf.rb +++ b/lib/scanf.rb @@ -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]