aboutsummaryrefslogtreecommitdiff
path: root/core/bytes
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-12-04 21:25:13 +0000
committergingerBill <bill@gingerbill.org>2020-12-04 21:25:13 +0000
commit0ed1300bd6a436b3cd49ed1109987a467dce9685 (patch)
tree0369f405311e554a21c1a75bbca4ac9cbb56ccd0 /core/bytes
parentdd63665b58e3d1e747f09d4a9da5ddc0f750f2b3 (diff)
Make bytes.Reader and strings.Reader have the same interface
Diffstat (limited to 'core/bytes')
-rw-r--r--core/bytes/reader.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/bytes/reader.odin b/core/bytes/reader.odin
index deaaf4ac6..2032616d0 100644
--- a/core/bytes/reader.odin
+++ b/core/bytes/reader.odin
@@ -4,9 +4,9 @@ import "core:io"
import "core:unicode/utf8"
Reader :: struct {
- s: []byte,
- i: i64, // current reading index
- prev_rune: int, // previous reading index of rune or < 0
+ s: []byte, // read-only buffer
+ i: i64, // current reading index
+ prev_rune: int, // previous reading index of rune or < 0
}
reader_init :: proc(r: ^Reader, s: []byte) {