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

checker: validate loop var names (#5677)

This commit is contained in:
yuyi
2020-07-05 21:27:37 +08:00
committed by GitHub
parent cda9240632
commit 34a24eaa4e
6 changed files with 27 additions and 7 deletions

View File

@ -27,8 +27,8 @@ pub fn (mut w Writer) write(record []string) ?bool {
return err_invalid_delim
}
le := if w.use_crlf { '\r\n' } else { '\n' }
for n, _field in record {
mut field := _field
for n, field_ in record {
mut field := field_
if n > 0 {
w.sb.write(w.delimiter.str())
}