From a1515f149edd85c77bdf53cfb6710f0b262cd6ca Mon Sep 17 00:00:00 2001 From: Burdette Lamar Date: Tue, 7 Jul 2026 02:13:58 -0500 Subject: [PATCH] [DOC] Remove Set Methods for Iterating documentation section This section only had one method (#each), so move that method to the "Other Methods" section. --- set.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/set.c b/set.c index d7d3547068..9a9a7636f8 100644 --- a/set.c +++ b/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.