Skip to content

Commit 080ff6a

Browse files
committed
Add signature for Set#flatten!
1 parent ff738a1 commit 080ff6a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/set.rbs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,15 @@ class Set[unchecked out A]
486486
#
487487
def flatten: () -> Set[untyped]
488488

489+
# <!--
490+
# rdoc-file=lib/set.rb
491+
# - flatten!()
492+
# -->
493+
# Equivalent to Set#flatten, but replaces the receiver with the
494+
# result in place. Returns nil if no modifications were made.
495+
#
496+
def flatten!: () -> self?
497+
489498
# <!--
490499
# rdoc-file=lib/set.rb
491500
# - intersect?(set)

0 commit comments

Comments
 (0)