Skip to content

Commit

Permalink
fixup! Deprecate Base.convert(IOStream, ::Message)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Jul 20, 2024
1 parent d004b12 commit c90c783
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/message.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
```
"""
Expand Down

0 comments on commit c90c783

Please sign in to comment.