mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
checker: validate loop var names (#5677)
This commit is contained in:
parent
cda9240632
commit
34a24eaa4e
6 changed files with 27 additions and 7 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue