We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
IO#read_bytes
1 parent 50186ac commit ba13db6Copy full SHA for ba13db6
src/io.cr
@@ -930,7 +930,7 @@ abstract class IO
930
# io.rewind
931
# io.read_bytes(Int32, IO::ByteFormat::LittleEndian) # => 0x01020304
932
# ```
933
- def read_bytes(type : T.class, format : IO::ByteFormat = IO::ByteFormat::SystemEndian) : T forall T
+ def read_bytes(type, format : IO::ByteFormat = IO::ByteFormat::SystemEndian)
934
type.from_io(self, format)
935
end
936
0 commit comments