mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (block_param): restrict block parameters to be local
variables only. * test/ruby/test_iterator.rb (TestIterator::test_nested_iterator): update test suite to conform the last change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eebdfca0b2
commit
c4e5ec23d3
6 changed files with 65 additions and 26 deletions
|
|
@ -542,7 +542,8 @@ module Scanf
|
|||
@string_left = str
|
||||
@matched_count = 0
|
||||
|
||||
@specs.each_with_index do |spec,@i|
|
||||
@specs.each_with_index do |spec,i|
|
||||
@i=i
|
||||
@last_spec_tried = spec
|
||||
@last_match_tried = spec.match(@string_left)
|
||||
break unless @last_match_tried
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue