diff options
author | gsinclair <gsinclair@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-19 07:47:46 +0000 |
---|---|---|
committer | gsinclair <gsinclair@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-19 07:47:46 +0000 |
commit | 1469fdd06c6a88dbc59aead0ebd9ef5129574842 (patch) | |
tree | be5e9a1352bee2a0093fb8f3a9f242311420fd78 /lib/set.rb | |
parent | 34ab8c77a1cfdef07478a2d0b297f542d1be9412 (diff) | |
download | ruby-1469fdd06c6a88dbc59aead0ebd9ef5129574842.tar.gz |
Minor documentation improvements
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/set.rb')
-rw-r--r-- | lib/set.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/set.rb b/lib/set.rb index c86578c716..a5d4a7730a 100644 --- a/lib/set.rb +++ b/lib/set.rb @@ -212,7 +212,8 @@ class Set end end - # Deletes the given object from the set and returns self. + # Deletes the given object from the set and returns self. Use +subtract+ to + # delete several items at once. def delete(o) @hash.delete(o) self @@ -282,7 +283,7 @@ class Set alias union | ## # Returns a new set built by duplicating the set, removing every - # element that appear in the given enumerable object. + # element that appears in the given enumerable object. def -(enum) enum.is_a?(Enumerable) or raise ArgumentError, "value must be enumerable" dup.subtract(enum) |