diff --git a/src/message.jl b/src/message.jl index 76115f5..386399b 100644 --- a/src/message.jl +++ b/src/message.jl @@ -33,22 +33,17 @@ behaviour. ```jldoctest julia> using ZMQ -julia> m = Message("foo") -3-element Message: - 102 - 111 - 111 +julia> m = Message("foo"); -julia> m[1] # Array indexing -102 +julia> Char(m[1]) # Array indexing +'f': ASCII/Unicode U+0066 (category Ll: Letter, lowercase) -julia> m[end] = 103 # Array assignment -103 +julia> m[end] = Int('g'); # Array assignment -julia> unsafe_string(m) # Conversion to string (only do this if you know the message is a string) +julia> unsafe_string(m) # Conversion to string (only do this if you know the message is a string) "fog" -julia> IOBuffer(m) # Create a zero-copy IOBuffer +julia> IOBuffer(m) # Create a zero-copy IOBuffer IOBuffer(data=UInt8[...], readable=true, writable=false, seekable=true, append=false, size=3, maxsize=Inf, ptr=1, mark=-1) ``` """