summaryrefslogtreecommitdiffstats
path: root/lib/set.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-03 16:06:45 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-03 16:06:45 +0000
commit13cf716c5250ed3b427cf25d67d7fca5458d9157 (patch)
tree5846532de4837de8246e1f1d935f9fce0725a1d1 /lib/set.rb
parentecc67046c9d4d7e97441d5b25be1cce7b4f8adba (diff)
downloadruby-13cf716c5250ed3b427cf25d67d7fca5458d9157.tar.gz
ruby-13cf716c5250ed3b427cf25d67d7fca5458d9157.tar.xz
ruby-13cf716c5250ed3b427cf25d67d7fca5458d9157.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/branches/ruby_1_8_6@11980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/set.rb')
-rw-r--r--lib/set.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/set.rb b/lib/set.rb
index e24471283..5a9287ba8 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)