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

make replace with count=0 a no-op #22325

Merged
merged 13 commits into from
Jul 4, 2017
Merged
Prev Previous commit
Next Next commit
remove default in the docstring
  • Loading branch information
rfourquet committed Jul 4, 2017
commit 2f2604340b4198439c7da10cee21e16136c8aa0a
2 changes: 1 addition & 1 deletion base/strings/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ function replace(str::String, pattern, repl, limit::Integer)
end

"""
replace(string::AbstractString, pat, r[, n::Integer=0])
replace(string::AbstractString, pat, r, [n::Integer])

Search for the given pattern `pat`, and replace each occurrence with `r`.
If `n` is provided, replace at most `n` occurrences (if `n < 0`, replace
Expand Down