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 | b022f43fe6e235f6d7907329ab5fe4d9307f44f9 (patch) | |
tree | be5e9a1352bee2a0093fb8f3a9f242311420fd78 | |
parent | 51821e717caad5665bb218740bfa13c79e7dc0a0 (diff) | |
download | ruby-b022f43fe6e235f6d7907329ab5fe4d9307f44f9.tar.gz ruby-b022f43fe6e235f6d7907329ab5fe4d9307f44f9.tar.xz ruby-b022f43fe6e235f6d7907329ab5fe4d9307f44f9.zip |
Minor documentation improvements
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 c86578c71..a5d4a7730 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) |