Merge pull request #1216 from Tetralux/fix-io-read

Fix typo in io.read_at_least()
This commit is contained in:
gingerBill
2021-10-11 13:57:30 +01:00
committed by GitHub
+1 -1
View File
@@ -443,7 +443,7 @@ read_at_least :: proc(r: Reader, buf: []byte, min: int) -> (n: int, err: Error)
for n < min && err == nil {
nn: int
nn, err = read(r, buf[n:])
n += n
n += nn
}
if n >= min {