-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Try to clarify split
docs
#26634
Try to clarify split
docs
#26634
Conversation
The description of the options was confusing. We might also want change the `keep` option to something more descriptive, like `keepempty`
base/strings/util.jl
Outdated
@@ -239,17 +239,20 @@ function rpad( | |||
end | |||
|
|||
""" | |||
split(s::AbstractString; limit::Integer=0, keep::Bool=false) | |||
split(s::AbstractString, [chars]; limit::Integer=0, keep::Bool=true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The brackets around chars
can be removed with this clarification.
base/strings/util.jl
Outdated
The optional keyword arguments are: | ||
- `limit`: the maximum size of the result. `limit=0` implies no maximum (default) | ||
- `keep`: whether empty fields should be kept in the result. Default is `false` without | ||
`chars` argument, `true` with `chars. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a close ` at the end
I think this would be good. I was confused by this the other week since I just assumed that |
The description of the options was confusing.
We might also want change the
keep
option to something more descriptive, likekeepempty