1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixed Kernel#scanf to propagate code block

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
dblack 2004-03-01 21:23:14 +00:00
parent 1362d3fca2
commit 2e9663f152

View file

@ -691,7 +691,7 @@ end
module Kernel
private
def scanf(fs)
STDIN.scanf(fs)
def scanf(fs,&b)
STDIN.scanf(fs,&b)
end
end