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

Update take docstring to match the behaviour #172

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

nwolverson
Copy link
Contributor

This is a documentation-only change to reconcile the documentation of Data.String.CodePoints.take with the behaviour. The behaviour of take is to return the first N characters of the string, or the entire input string if the length is less than N. The falllback and direct implementations appear to agree on this. The tests verify this behaviour (str length is 7):

  assertEqual
    { actual: SCP.take 8 str
    , expected: str
    }

@garyb garyb merged commit b6654d4 into purescript:master Dec 26, 2024
1 check 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.

2 participants