From 2450f2c9270bf3b8fb662d69c3b14d5e1e4e6b74 Mon Sep 17 00:00:00 2001 From: nhz2 Date: Sat, 14 Sep 2024 22:08:42 -0400 Subject: [PATCH] fix typo --- base/iobuffer.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/iobuffer.jl b/base/iobuffer.jl index 1c6fef776dbf5..6005d780c4cc6 100644 --- a/base/iobuffer.jl +++ b/base/iobuffer.jl @@ -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