1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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_6@11980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2007-03-03 16:06:45 +00:00
parent 6b53621dd5
commit 7c7fa76e63
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Sun Mar 4 01:06:55 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 21:41:31 2007 Akinori MUSHA <knu@iDaemons.org>
* eval.c (stack_check): Unset inline to fix build with GCC 3.4.6;

View file

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