Skip to content

Fix sumset docstring - #15038

Open
sanchiagarwal0 wants to merge 1 commit into
TheAlgorithms:masterfrom
sanchiagarwal0:fix-sumset-docstring
Open

Fix sumset docstring#15038
sanchiagarwal0 wants to merge 1 commit into
TheAlgorithms:masterfrom
sanchiagarwal0:fix-sumset-docstring

Conversation

@sanchiagarwal0

Copy link
Copy Markdown

Describe your change:

Fixes #15013

Corrected the sumset() docstring:

  • Fixed the parameter names to set_a and set_b.
  • Corrected the return-value description.
  • Removed the incorrect reference to Sylvester's sequence.

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests that will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • If this pull request resolves one or more open issues then the description above includes the issue number with a closing keyword: "Fixes #ISSUE-NUMBER".

@algorithms-keeper algorithms-keeper Bot added enhancement This PR modified some existing files awaiting reviews This PR is ready to be reviewed labels Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed enhancement This PR modified some existing files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: maths/sumset.py docstring incorrectly references Sylvester's sequence

1 participant