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

parser: correct comments in comptime_for() (#17944)

This commit is contained in:
yuyi 2023-04-13 13:26:43 +08:00 committed by GitHub
parent f41ca48ab9
commit 87ca877c83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,8 +255,10 @@ fn (mut p Parser) comptime_call() ast.ComptimeCall {
fn (mut p Parser) comptime_for() ast.ComptimeFor { fn (mut p Parser) comptime_for() ast.ComptimeFor {
// p.comptime_for() handles these special forms: // p.comptime_for() handles these special forms:
// $for method in App(methods) { // `$for method in App.methods {`
// $for field in App(fields) { // `$for val in App.values {`
// `$for field in App.fields {`
// `$for attr in App.attributes {`
p.next() p.next()
p.check(.key_for) p.check(.key_for)
var_pos := p.tok.pos() var_pos := p.tok.pos()