Skip to content

Commit ba13db6

Browse files
Revert type restriction for IO#read_bytes (#16231)
1 parent 50186ac commit ba13db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ abstract class IO
930930
# io.rewind
931931
# io.read_bytes(Int32, IO::ByteFormat::LittleEndian) # => 0x01020304
932932
# ```
933-
def read_bytes(type : T.class, format : IO::ByteFormat = IO::ByteFormat::SystemEndian) : T forall T
933+
def read_bytes(type, format : IO::ByteFormat = IO::ByteFormat::SystemEndian)
934934
type.from_io(self, format)
935935
end
936936

0 commit comments

Comments
 (0)