1
0
Fork 0
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:
knu 2015-11-16 07:41:18 +00:00
parent 4f018492d3
commit dcfcef1cfd

View file

@ -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