Skip to content

Commit a5be132

Browse files
authored
vet: use new annotation syntax ([] -> @[]) (#26026)
1 parent 2b61669 commit a5be132

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎cmd/tools/vvet/vvet.v‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ fn (mut vt Vet) vet_fn_documentation(lines []string, line string, lnumber int) {
212212
prev_line := lines[j]
213213
if prev_line.contains('}') { // We've looked back to the above scope, stop here
214214
break
215-
} else if prev_line.starts_with('[') {
215+
} else if prev_line.starts_with('@[') {
216216
tags << collect_tags(prev_line)
217217
continue
218218
} else if prev_line.starts_with('//') { // Single-line comment
@@ -253,7 +253,7 @@ fn (mut vt Vet) vet_fn_documentation(lines []string, line string, lnumber int) {
253253

254254
if prev_line.contains('}') { // We've looked back to the above scope, stop here
255255
break
256-
} else if prev_line.starts_with('[') {
256+
} else if prev_line.starts_with('@[') {
257257
tags << collect_tags(prev_line)
258258
continue
259259
}

0 commit comments

Comments
 (0)