Skip to content

Commit 476d7d9

Browse files
GiuseppeCesaranoalexrp
authored andcommitted
std.Io.File.readPositional fixed buffer type
1 parent 3c647ca commit 476d7d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/std/Io/File.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ pub fn openSelfExe(io: Io, flags: OpenFlags) OpenSelfExeError!File {
215215

216216
pub const ReadPositionalError = Reader.Error || error{Unseekable};
217217

218-
pub fn readPositional(file: File, io: Io, buffer: []u8, offset: u64) ReadPositionalError!usize {
218+
pub fn readPositional(file: File, io: Io, buffer: [][]u8, offset: u64) ReadPositionalError!usize {
219219
return io.vtable.fileReadPositional(io.userdata, file, buffer, offset);
220220
}
221221

0 commit comments

Comments
 (0)