[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:
Burdette Lamar 2026-07-07 02:13:58 -05:00 committed by GitHub
parent bcbf54feb4
commit a1515f149e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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
View File

@ -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.