Skip to content

Commit

Permalink
doc: add return type for ^ operator for strings (#46884)
Browse files Browse the repository at this point in the history
  • Loading branch information
udohjeremiah authored Sep 29, 2022
1 parent 7364207 commit 8e44510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/strings/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ julia> repeat("ha", 3)
repeat(s::AbstractString, r::Integer) = repeat(String(s), r)

"""
^(s::Union{AbstractString,AbstractChar}, n::Integer)
^(s::Union{AbstractString,AbstractChar}, n::Integer) -> AbstractString
Repeat a string or character `n` times. This can also be written as `repeat(s, n)`.
Expand Down

0 comments on commit 8e44510

Please sign in to comment.