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

Fix typo in io.read_at_least()
This commit is contained in:
gingerBill authored and GitHub committed 2021-10-11 13:57:30 +01:00
commit 3e9b7120be
1 file changed
+1 -1
+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 {