diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-08-04 15:53:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-04 15:53:18 +0100 |
| commit | f427f040fd83f5db411396bd4d4eae6f39c26de7 (patch) | |
| tree | 0ee1feef26570f195a8d0d00d0266edc028dbfec /core/encoding/csv | |
| parent | 71932628cc3c1957a98e998740b059df9b7dd392 (diff) | |
| parent | c078b2dd1be617e6687a3a5ffc919a45bbabb5bf (diff) | |
Merge pull request #4020 from odin-lang/bill/os-errno
`os.Error` to replace `os.Errno`
Diffstat (limited to 'core/encoding/csv')
| -rw-r--r-- | core/encoding/csv/example.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/encoding/csv/example.odin b/core/encoding/csv/example.odin index 24722589d..d791eb33b 100644 --- a/core/encoding/csv/example.odin +++ b/core/encoding/csv/example.odin @@ -38,9 +38,9 @@ iterate_csv_from_stream :: proc(filename: string) { r.reuse_record_buffer = true // Without it you have to each of the fields within it defer csv.reader_destroy(&r) - handle, errno := os.open(filename) - if errno != os.ERROR_NONE { - fmt.printfln("Error opening file: %v", filename) + handle, err := os.open(filename) + if err != nil { + fmt.eprintfln("Error opening file: %v", filename) return } defer os.close(handle) |