Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io/byte_format.cr
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
# ### Decode from an IO
#
# ```
# io = MemoryIO.new(Bytes[0x34, 0x12])
# io = IO::Memory.new(Bytes[0x34, 0x12])
# int16 = io.read_bytes(Int16, IO::ByteFormat::LittleEndian)
# int16 # => 0x1234_i16
# ```
@@ -28,7 +28,7 @@
# ### Encode to IO
#
# ```
# io = MemoryIO.new
# io = IO::Memory.new
# io.write_bytes(0x1234_i16, IO::ByteFormat::LittleEndian)
# io.to_slice # => Bytes[0x34, 0x12]
# ```

0 comments on commit c758737

Please sign in to comment.