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

substr-rw is missing an explanation into the default value of $length #2187

Closed
Xliff opened this issue Jul 19, 2018 · 0 comments
Closed

substr-rw is missing an explanation into the default value of $length #2187

Xliff opened this issue Jul 19, 2018 · 0 comments
Assignees
Labels
docs Documentation issue (primary issue type) update part of "docs" - indicates this is an update for an existing section; rewrite, clarification, etc.

Comments

@Xliff
Copy link
Collaborator

Xliff commented Jul 19, 2018

The problem

In the description of Str.substr-rw (https://docs.perl6.org/type/Str#method_substr-rw), the default value for $length is not specified, even though $length is defined as optional.

Suggestions

According to IRC and experiments, a simple line saying that "$length, if not specified, defaults to the end of the string"

@Xliff Xliff self-assigned this Jul 19, 2018
@JJ JJ added docs Documentation issue (primary issue type) update part of "docs" - indicates this is an update for an existing section; rewrite, clarification, etc. labels Jul 19, 2018
Xliff added a commit to Xliff/doc that referenced this issue Jul 25, 2018
This was referenced Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation issue (primary issue type) update part of "docs" - indicates this is an update for an existing section; rewrite, clarification, etc.
Projects
None yet
Development

No branches or pull requests

3 participants