Skip to content

Commit d455e1a

Browse files
committed
remove Base prefix
1 parent 9a2b0fd commit d455e1a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

base/strings/substring.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ struct SubString{T<:AbstractString} <: AbstractString
3535
end
3636
end
3737

38-
Base.@propagate_inbounds Base.SubString(s::T, i::Int, j::Int) where {T<:AbstractString} = SubString{T}(s, i, j)
39-
Base.@propagate_inbounds SubString(s::AbstractString, i::Integer, j::Integer=lastindex(s)) = SubString(s, Int(i), Int(j))
40-
Base.@propagate_inbounds SubString(s::AbstractString, r::UnitRange{<:Integer}) = SubString(s, first(r), last(r))
38+
@propagate_inbounds SubString(s::T, i::Int, j::Int) where {T<:AbstractString} = SubString{T}(s, i, j)
39+
@propagate_inbounds SubString(s::AbstractString, i::Integer, j::Integer=lastindex(s)) = SubString(s, Int(i), Int(j))
40+
@propagate_inbounds SubString(s::AbstractString, r::UnitRange{<:Integer}) = SubString(s, first(r), last(r))
4141

42-
Base.@propagate_inbounds function SubString(s::SubString, i::Int, j::Int)
42+
@propagate_inbounds function SubString(s::SubString, i::Int, j::Int)
4343
@boundscheck i j && checkbounds(s, i:j)
4444
SubString(s.string, s.offset+i, s.offset+j)
4545
end

0 commit comments

Comments
 (0)