summaryrefslogtreecommitdiff
path: root/lib/scanf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/scanf.rb')
-rw-r--r--lib/scanf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scanf.rb b/lib/scanf.rb
index 6d67627..cd1596b 100644
--- a/lib/scanf.rb
+++ b/lib/scanf.rb
@@ -745,7 +745,7 @@ class String
# See Scanf for details on creating a format string.
#
# You will need to require 'scanf' to use String#block_scanf
- def block_scanf(fstr,&b) #:yield: current_match
+ def block_scanf(fstr) #:yield: current_match
fs = Scanf::FormatString.new(fstr)
str = self.dup
final = []