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

@@ -153,8 +153,8 @@ pub fn read_cookies(h map[string][]string, filter string) []&Cookie {
return []
}
mut cookies := []&Cookie{}
for _, _line in lines {
mut line := _line.trim_space()
for _, line_ in lines {
mut line := line_.trim_space()
mut part := ''
for line.len > 0 {
if line.index_any(';') > 0 {