aboutsummaryrefslogtreecommitdiff
path: root/core/encoding
diff options
context:
space:
mode:
authorTadeo hepperle <tadeo@do-mix.de>2024-06-26 19:31:00 +0200
committerTadeo hepperle <tadeo@do-mix.de>2024-06-26 19:31:00 +0200
commit67e69f719648704c9fa118dcc7cb052d8ab30608 (patch)
treed28d893b51ba0796d41bd4fe6b86133cd3c0eb40 /core/encoding
parent18dadd94e3a91d1eed5938f4998b8b7a71765afb (diff)
parent8d1827838fb902be4f16b3b028ac0d299a456857 (diff)
Merge branch 'master' into fix-vulkan-codegen-arrays-as-proc-args
Diffstat (limited to 'core/encoding')
-rw-r--r--core/encoding/csv/reader.odin6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/encoding/csv/reader.odin b/core/encoding/csv/reader.odin
index 200bf43ea..ebc7b39a0 100644
--- a/core/encoding/csv/reader.odin
+++ b/core/encoding/csv/reader.odin
@@ -138,7 +138,9 @@ iterator_next :: proc(r: ^Reader) -> (record: []string, idx: int, err: Error, mo
return record, r.line_count - 1, r.last_iterator_error, r.last_iterator_error == nil
}
-// Get last error if we the iterator
+// Get last CSV parse error if we ignored it in the iterator loop
+//
+// for record, row_idx in csv.iterator_next(&r) { ... }
iterator_last_error :: proc(r: Reader) -> (err: Error) {
return r.last_iterator_error
}
@@ -169,7 +171,7 @@ is_io_error :: proc(err: Error, io_err: io.Error) -> bool {
// read_all reads all the remaining records from r.
// Each record is a slice of fields.
-// read_all is defined to read until an EOF, and does not treat, and does not treat EOF as an error
+// read_all is defined to read until an EOF, and does not treat EOF as an error
@(require_results)
read_all :: proc(r: ^Reader, allocator := context.allocator) -> ([][]string, Error) {
context.allocator = allocator