1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

docs, builtin, encoding.csv: update error implementations (#13440)

This commit is contained in:
Tim Basel
2022-02-12 10:54:10 +01:00
committed by GitHub
parent ae0e90f5d8
commit 37c151efe5
6 changed files with 81 additions and 37 deletions

View File

@ -23,7 +23,7 @@ pub fn new_writer() &Writer {
// write writes a single record
pub fn (mut w Writer) write(record []string) ?bool {
if !valid_delim(w.delimiter) {
return IError(&ErrInvalidDelimiter{})
return IError(&InvalidDelimiterError{})
}
le := if w.use_crlf { '\r\n' } else { '\n' }
for n, field_ in record {