summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEspartaco Palma <esparta@gmail.com>2019-06-20 22:46:24 -0700
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-21 15:29:29 +0900
commit4149fd60786527121d42e3d6f12d1447505d22fa (patch)
tree58997d71a14d9ef3eacdf045acb639fed47b99d7 /lib
parentfde842fec06b39f95eeed9ce095065d294fd2a65 (diff)
Fix small typo on block_scanf example [ci-skip]
Closes: https://github.com/ruby/ruby/pull/2247
Diffstat (limited to 'lib')
-rw-r--r--lib/scanf.rb2
1 files changed, 1 insertions, 1 deletions
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]