mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Explain the reason for calling do_with_enum without a block [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4f018492d3
commit
dcfcef1cfd
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ class Set
|
|||
@hash.replace(enum.instance_variable_get(:@hash))
|
||||
self
|
||||
else
|
||||
do_with_enum(enum)
|
||||
do_with_enum(enum) # make sure enum is enumerable before calling clear
|
||||
clear
|
||||
merge(enum)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue