From 4149fd60786527121d42e3d6f12d1447505d22fa Mon Sep 17 00:00:00 2001 From: Espartaco Palma Date: Thu, 20 Jun 2019 22:46:24 -0700 Subject: [PATCH] Fix small typo on block_scanf example [ci-skip] Closes: https://github.com/ruby/ruby/pull/2247 --- lib/scanf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]