Skip to content

Commit

Permalink
Fix "Various fixes to byte / bytearray search" (#55734)
Browse files Browse the repository at this point in the history
Fixes the conflict between #54593 and #54579
`_search` returns `nothing` instead of zero as a sentinal in #54579
  • Loading branch information
nhz2 authored Sep 11, 2024
1 parent c6c449c commit d7e417d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/strings/search.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function findall(
i = firstindex(s)
while true
i = _search(s, byte, i)
iszero(i) && return result
isnothing(i) && return result
i += 1
index = i - ncu
# If the char is invalid, it's possible that its first byte is
Expand Down

0 comments on commit d7e417d

Please sign in to comment.