diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-03 16:04:57 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-03-03 16:04:57 +0000 |
commit | 44308e441190cec367511811d89cc80861d077a7 (patch) | |
tree | 48caff80f4208ac5dac5d490fdd25cf195af0d33 /lib/set.rb | |
parent | 42e6d68f012f4ed6be495fd662eb5e19d44d2235 (diff) | |
download | ruby-44308e441190cec367511811d89cc80861d077a7.tar.gz ruby-44308e441190cec367511811d89cc80861d077a7.tar.xz ruby-44308e441190cec367511811d89cc80861d077a7.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@11978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/set.rb')
-rw-r--r-- | lib/set.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/set.rb b/lib/set.rb index 66ffc898a..15f5cee7d 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -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) |