Fix docstring copy-paste error in maths/sumset.py (#15052)

The docstring incorrectly referenced Sylvester's sequence (a copy-paste
error from maths/sylvester_sequence.py) and used param names that did
not match the actual function signature.

Fixes #15013

Co-authored-by: kumarsatyam9378-art <kumarsatyam9378@gmail.com>
This commit is contained in:
Satyam Kumar
2026-08-25 16:09:01 +02:00
committed by GitHub
co-authored by kumarsatyam9378-art
parent acd4b34b0e
commit 25a312ded5
+3 -3
View File
@@ -10,9 +10,9 @@ Source:
def sumset(set_a: set, set_b: set) -> set:
"""
:param first set: a set of numbers
:param second set: a set of numbers
:return: the nth number in Sylvester's sequence
:param set_a: a set of numbers
:param set_b: a set of numbers
:return: the sumset of set_a and set_b (all pairwise sums a + b)
>>> sumset({1, 2, 3}, {4, 5, 6})
{5, 6, 7, 8, 9}