mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-24 20:59:52 +00:00
Merge pull request #6697 from dogue/master
[core:io/utils]: fix undeclared name in read_slice (typo)
This commit is contained in:
@@ -10,7 +10,7 @@ read_ptr :: proc(r: Reader, p: rawptr, byte_size: int, n_read: ^int = nil) -> (n
|
||||
|
||||
read_slice :: proc(r: Reader, slice: $S/[]$T, n_read: ^int = nil) -> (n: int, err: Error) {
|
||||
size := len(slice)*size_of(T)
|
||||
return read_ptr(w, raw_data(slice), size, n_read)
|
||||
return read_ptr(r, raw_data(slice), size, n_read)
|
||||
}
|
||||
|
||||
write_ptr :: proc(w: Writer, p: rawptr, byte_size: int, n_written: ^int = nil) -> (n: int, err: Error) {
|
||||
|
||||
Reference in New Issue
Block a user