summaryrefslogtreecommitdiff
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
commitdcfcef1cfdc476507f822b03dcb67c1256a7e3a0 (patch)
treee6d210ecf45fd53e1d74981a0f3bb69263b78d46
parent4f018492d347839a0ae146c051821c11f4f54912 (diff)
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
-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