Skip to content

Commit a600205

Browse files
committed
Fix typos ch -> wchr in _fwd_memchr methods
1 parent d461708 commit a600205

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authors = ["ScottPJones <scottjones@alum.mit.edu>"]
44
keywords = ["Strings"]
55
license = "MIT"
66
uuid = "e79e7a6a-7bb1-5a4d-9d64-da657b06f53a"
7-
version = "1.1.1"
7+
version = "1.1.2"
88

99
[deps]
1010
Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"

src/support.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,14 +726,14 @@ _fwd_memchr(ptr::Ptr{T}, byt::T, len::Integer) where {T<:UInt8} =
726726
ccall(:memchr, Ptr{T}, (Ptr{T}, Int32, Csize_t), ptr, byt, len)
727727

728728
_fwd_memchr(beg::Ptr{T}, wchr::T, len::Integer) where {T<:OthChr} =
729-
_fwd_memchr(beg, ch, bytoff(beg, len))
729+
_fwd_memchr(beg, wchr, bytoff(beg, len))
730730

731731
_fwd_memchr(ptr::Ptr{T}, byt::T, fin::Ptr{T}) where {T<:UInt8} =
732732
ptr < fin ? _fwd_memchr(ptr, byt, fin - ptr) : C_NULL
733733

734734
function _fwd_memchr(pnt::Ptr{T}, wchr::T, fin::Ptr{T}) where {T<:OthChr}
735735
while pnt < fin
736-
get_codeunit(pnt) == ch && return pnt
736+
get_codeunit(pnt) == wchr && return pnt
737737
pnt += sizeof(T)
738738
end
739739
C_NULL

0 commit comments

Comments
 (0)