Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 committed Sep 15, 2024
1 parent d6e3815 commit 2450f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/iobuffer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function unsafe_read(from::GenericIOBuffer, p::Ptr{UInt8}, nb::UInt)
nothing
end

function unsafe_read!(dest::Ptr{UInt8}, src::{UInt8}, so::Integer, nbytes::UInt)
function unsafe_read!(dest::Ptr{UInt8}, src::AbstractVector{UInt8}, so::Integer, nbytes::UInt)
for i in 1:nbytes
unsafe_store!(dest, @inbounds(src[so+i-1]), i)
end
Expand Down

0 comments on commit 2450f2c

Please sign in to comment.