diff options
| author | Laytan <laytanlaats@hotmail.com> | 2025-05-05 03:00:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-05 03:00:46 +0200 |
| commit | 93f80f60fbebf28c4c40a71908452611e524b53c (patch) | |
| tree | 5dc2d5d3fe155abbba6e3af4517ea04249701e2e | |
| parent | 32cef4c11b4705eaa22fb08254ab5a0181eee12d (diff) | |
| parent | 39752faba4f3373ad9bf694262d95f69f5818c18 (diff) | |
Merge pull request #5112 from blob1807/master
`core:bufio`: Fix typo from `b.w-b.w` to `b.w-b.r`
| -rw-r--r-- | core/bufio/reader.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/bufio/reader.odin b/core/bufio/reader.odin index a875c732d..b78cac6e1 100644 --- a/core/bufio/reader.odin +++ b/core/bufio/reader.odin @@ -257,7 +257,7 @@ reader_read_rune :: proc(b: ^Reader) -> (r: rune, size: int, err: io.Error) { for b.r+utf8.UTF_MAX > b.w && !utf8.full_rune(b.buf[b.r:b.w]) && b.err == nil && - b.w-b.w < len(b.buf) { + b.w-b.r < len(b.buf) { _reader_read_new_chunk(b) or_return } |