summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/scanf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scanf.rb b/lib/scanf.rb
index 4827df1e42..b6c5287664 100644
--- a/lib/scanf.rb
+++ b/lib/scanf.rb
@@ -603,7 +603,7 @@ class IO
# 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]