Skip to content

Add examples to public function docstrings - #55

Merged
codepiyusss merged 8 commits into
codepiyusss:mainfrom
Serena-X11:main
Oct 21, 2026
Merged

codepiyusss merged 8 commits into
codepiyusss:mainfrom
Serena-X11:main

Conversation

@Serena-X11

@Serena-X11 Serena-X11 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds usage examples to the docstrings of public functions across the fixit package.

  • Documents command-line and utility functions with examples.
  • Keeps existing function behavior unchanged.
  • Improves readability and makes the public API easier to use.

Related issue

Closes #36

Added docstrings to build_parser and main functions for better clarity.
Added docstrings to conversion functions for clarity.
Added a docstring to the format_json function to explain its purpose and provide an example usage.
Updated docstring to provide an example usage of the generate function.
Updated docstrings for is_palindrome and reverse_words functions to include examples.
Updated docstrings for word counting functions to provide examples and clarify their purpose.
Update example in main function docstring to reflect output.
@codepiyusss
codepiyusss merged commit f7de957 into codepiyusss:main Oct 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: add a docstring with examples to every public function

2 participants