diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index da1adff5dc..5c715c272e 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -2974,7 +2974,7 @@ fn (mut p Parser) return_stmt() ast.Return { p.next() // no return mut comments := p.eat_comments() - if p.tok.kind == .rcbr || ( p.tok.kind == .name && p.peek_tok.kind == .colon ) { + if p.tok.kind == .rcbr || (p.tok.kind == .name && p.peek_tok.kind == .colon) { return ast.Return{ comments: comments pos: first_pos