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/trunk@11978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
738bf0e8a4
commit
ebba0b4340
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Sun Mar 4 01:01:25 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 22:54:33 2007 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* lib/fileutils.rb (touch): last #touch change causes error when
|
||||
|
|
|
@ -281,7 +281,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)
|
||||
n = self.class.new
|
||||
|
@ -290,7 +290,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)
|
||||
|
|
Loading…
Reference in a new issue