mirror of
https://github.com/ruby/ruby.git
synced 2026-08-03 13:08:59 +08:00
[DOC] Remove Set Methods for Iterating documentation section
This section only had one method (#each), so move that method to the "Other Methods" section.
This commit is contained in:
parent
bcbf54feb4
commit
a1515f149e
Notes:
git
2026-07-07 07:14:26 +00:00
Merged: https://github.com/ruby/ruby/pull/17692 Merged-By: jeremyevans <code@jeremyevans.net>
7
set.c
7
set.c
@ -2516,15 +2516,12 @@ rb_set_size(VALUE set)
|
||||
* calls the block with each element of +self+,
|
||||
* and adds the block's returns value to the new set.
|
||||
*
|
||||
* === Methods for Iterating
|
||||
*
|
||||
* - #each:
|
||||
* Calls the block with each successive element; returns +self+.
|
||||
*
|
||||
* === Other Methods
|
||||
*
|
||||
* - #compare_by_identity:
|
||||
* Sets +self+ to compare by object identity (rather than by object content).
|
||||
* - #each:
|
||||
* Calls the block with each successive element of +self+; returns +self+.
|
||||
* - #reset:
|
||||
* Resets the internal state; useful if an element
|
||||
* has been modified while an element in the set.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user