Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
DQNEO committed May 21, 2020
1 parent 550e952 commit 980d556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ func (p *parser) parseUnaryExpr() Expr {
op: string(tok.sval),
operand: p.parsePrim(),
}
// when &T{}, allocate stack memory
// when &T{}, allocate heap memory
if strctliteral, ok := uop.operand.(*ExprStructLiteral); ok {
// newVariable
strctliteral.invisiblevar = p.newVariable(identifier(""), &Gtype{
Expand Down

0 comments on commit 980d556

Please sign in to comment.