Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Jul 29, 2023
1 parent b5755e8 commit c88c980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InlineStrings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ end

#TODO: optimize this
Base.endswith(a::InlineString, b::InlineString) = invoke(endswith, Tuple{AbstractString, AbstractString}, a, b)
function Base.endswith(a::T, b::Union{String, SubString{String}, InlineString}) where {T <: InlineString}
function Base.endswith(a::T, b::Union{String, SubString{String}}) where {T <: InlineString}
cub = ncodeunits(b)
astart = ncodeunits(a) - ncodeunits(b) + 1
astart < 1 && return false
Expand Down

0 comments on commit c88c980

Please sign in to comment.