diff --git a/docs/src/reference.md b/docs/src/reference.md index 099c22a..89e2fc2 100644 --- a/docs/src/reference.md +++ b/docs/src/reference.md @@ -58,7 +58,7 @@ Message(::Integer) Message(::Any) Message(::String) Message(::SubString{String}) -Message(::Array) +Message(::DenseVector) Message(::IOBuffer) isfreed(::Message) ``` diff --git a/src/message.jl b/src/message.jl index 386399b..ac2fb5d 100644 --- a/src/message.jl +++ b/src/message.jl @@ -129,8 +129,8 @@ mutable struct Message <: AbstractArray{UInt8, 1} Create a message with an array as a buffer (for send). Note: the same ownership semantics as for [`Message(m::String)`](@ref) apply. - Usually `a` will be a 1D `Array`/`Vector`, but on 1.11+ it can also be a - `Memory`. + Usually `a` will be a 1D `Array`/`Vector`, but on Julia 1.11+ it can also be + a `Memory`. """ Message(a::T) where T <: DenseVector = Message(a, pointer(a), sizeof(a))