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:
co-authored by
kumarsatyam9378-art
parent
acd4b34b0e
commit
25a312ded5
+3
-3
@@ -10,9 +10,9 @@ Source:
|
|||||||
|
|
||||||
def sumset(set_a: set, set_b: set) -> set:
|
def sumset(set_a: set, set_b: set) -> set:
|
||||||
"""
|
"""
|
||||||
:param first set: a set of numbers
|
:param set_a: a set of numbers
|
||||||
:param second set: a set of numbers
|
:param set_b: a set of numbers
|
||||||
:return: the nth number in Sylvester's sequence
|
:return: the sumset of set_a and set_b (all pairwise sums a + b)
|
||||||
|
|
||||||
>>> sumset({1, 2, 3}, {4, 5, 6})
|
>>> sumset({1, 2, 3}, {4, 5, 6})
|
||||||
{5, 6, 7, 8, 9}
|
{5, 6, 7, 8, 9}
|
||||||
|
|||||||
Reference in New Issue
Block a user