summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-03 16:06:02 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-03 16:06:02 +0000
commitcbfa951bcdfd06c865dcde1c169aadb44fd40ade (patch)
tree01a1affbfd22b9a2ae202a33bb5ac867724e9223
parent19ac7bdafc9e70846b57a7690a272dc25df44397 (diff)
* lib/set.rb (Set#^, Set#&): Correct documentation. Those methods
return sets, not arrays; noted by Oliver Frank Wittich <nietz AT mangabrain.de>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--lib/set.rb4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 713c5ab4f62..0ef9933ecb6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sun Mar 4 01:05:57 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb (Set#^, Set#&): Correct documentation. Those methods
+ return sets, not arrays; noted by Oliver Frank Wittich <nietz AT
+ mangabrain.de>.
+
Sat Mar 3 23:01:07 2007 Minero Aoki <aamine@loveruby.net>
* lib/fileutils.rb (mv): could not move a directory between
diff --git a/lib/set.rb b/lib/set.rb
index e2447128334..5a9287ba892 100644
--- a/lib/set.rb
+++ b/lib/set.rb
@@ -286,7 +286,7 @@ class Set
end
alias difference - ##
- # Returns a new array containing elements common to the set and the
+ # Returns a new set containing elements common to the set and the
# given enumerable object.
def &(enum)
enum.is_a?(Enumerable) or raise ArgumentError, "value must be enumerable"
@@ -296,7 +296,7 @@ class Set
end
alias intersection & ##
- # Returns a new array containing elements exclusive between the set
+ # Returns a new set containing elements exclusive between the set
# and the given enumerable object. (set ^ enum) is equivalent to
# ((set | enum) - (set & enum)).
def ^(enum)