From ebba0b43406c3adea42160ed4392e6ca86d9ea2a Mon Sep 17 00:00:00 2001 From: knu Date: Sat, 3 Mar 2007 16:04:57 +0000 Subject: * lib/set.rb (Set#^, Set#&): Correct documentation. Those methods return sets, not arrays; noted by Oliver Frank Wittich . git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/set.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/set.rb') diff --git a/lib/set.rb b/lib/set.rb index 66ffc898a1..15f5cee7d0 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) -- cgit v1.2.3