aboutsummaryrefslogtreecommitdiffstats
path: root/lib/set.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-16 07:41:18 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-16 07:41:18 +0000
commitd9804fea228d5db845b7380ffb7e95db0b6091d8 (patch)
treee6d210ecf45fd53e1d74981a0f3bb69263b78d46 /lib/set.rb
parent845a4066ab8ddbc66cb776e56ca8915e5ecde326 (diff)
downloadruby-d9804fea228d5db845b7380ffb7e95db0b6091d8.tar.gz
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
Diffstat (limited to 'lib/set.rb')
-rw-r--r--lib/set.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/set.rb b/lib/set.rb
index 9908aa6458..a0f290ebed 100644
--- a/lib/set.rb
+++ b/lib/set.rb
@@ -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