From 675ba44e67fa9c6d88c5800079f38016fa90e528 Mon Sep 17 00:00:00 2001 From: Tetralux Date: Mon, 11 Oct 2021 12:33:27 +0000 Subject: [PATCH] Fix typo in io.read_at_least() --- core/io/io.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/io.odin b/core/io/io.odin index 352cd92d1..b4757f8e5 100644 --- a/core/io/io.odin +++ b/core/io/io.odin @@ -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 {