Skip to content

Commit

Permalink
fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Aug 7, 2024
1 parent 68abbfd commit bc9e780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/strings/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ function rpad(
end

"""
rtruncate(str::AbstractString, maxwidth::Integer, replace_str::AbstractString = "…")
rtruncate(str::AbstractString, maxwidth::Integer, replacement::Union{AbstractString,AbstractChar} = '…')
Truncate `str` to at most `maxwidth` columns (as estimated by [`textwidth`](@ref)), replacing the last characters
with `replacement` if necessary. The default replacement string is "…".
Expand Down Expand Up @@ -547,7 +547,7 @@ function rtruncate(str::AbstractString, maxwidth::Integer, replacement::Union{Ab
end

"""
ltruncate(str::AbstractString, maxwidth::Integer, replace_str::AbstractString = "…")
ltruncate(str::AbstractString, maxwidth::Integer, replacement::Union{AbstractString,AbstractChar} = '…')
Truncate `str` to at most `maxwidth` columns (as estimated by [`textwidth`](@ref)), replacing the first characters
with `replacement` if necessary. The default replacement string is "…".
Expand Down

0 comments on commit bc9e780

Please sign in to comment.