diff options
| author | Jon Lipstate <Jon@Lipstate.com> | 2023-03-28 11:51:39 -0700 |
|---|---|---|
| committer | Jon Lipstate <Jon@Lipstate.com> | 2023-03-28 11:51:39 -0700 |
| commit | 194fa7cd983596e788997948271b4bc836ffaaa4 (patch) | |
| tree | 0078f039be344f41793e9828b1b8115d76b403f8 /core/strings/reader.odin | |
| parent | 6dce07790a9311f87356ba5a07b6051b0e17ebe8 (diff) | |
rename nul to null, allocation clarifications
Diffstat (limited to 'core/strings/reader.odin')
| -rw-r--r-- | core/strings/reader.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/strings/reader.odin b/core/strings/reader.odin index fcd8ea223..3e543cb9d 100644 --- a/core/strings/reader.odin +++ b/core/strings/reader.odin @@ -178,11 +178,11 @@ Reads and returns a single rune and its `size` from the Reader's string - r: A pointer to a Reader struct **Returns** -- r: The rune read from the Reader +- rr: The rune read from the Reader - size: The size of the rune in bytes - err: An `io.Error` if an error occurs while reading */ -reader_read_rune :: proc(r: ^Reader) -> (rn: rune, size: int, err: io.Error) { +reader_read_rune :: proc(r: ^Reader) -> (rr: rune, size: int, err: io.Error) { if r.i >= i64(len(r.s)) { r.prev_rune = -1 return 0, 0, .EOF @@ -192,7 +192,7 @@ reader_read_rune :: proc(r: ^Reader) -> (rn: rune, size: int, err: io.Error) { r.i += 1 return rune(c), 1, nil } - rn, size = utf8.decode_rune_in_string(r.s[r.i:]) + rr, size = utf8.decode_rune_in_string(r.s[r.i:]) r.i += i64(size) return } |