Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docstrings to some of the distributions #15

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

marcoct
Copy link
Contributor

@marcoct marcoct commented Mar 6, 2021

No description provided.

@@ -1,5 +1,26 @@
import StringDistances: DamerauLevenshtein, evaluate

"""
word_with_typos::String ~ AddTypos(word::String, max_typos=nothing)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am slightly concerned that this style of documentation implies that we support this syntax, when in fact I don't believe PClean's parser can handle type annotations on the LHS of a ~. We could just fix this in PClean (and probably should, eventually)—or we could find another way to communicate the return type?

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.

None yet

2 participants