internal/shader: fix typo

Updates #2011
This commit is contained in:
Hajime Hoshi 2022-03-10 02:54:10 +09:00
parent 5614e9d7eb
commit 5f97bdc1d3

View File

@ -595,7 +595,7 @@ func (s *compileState) parseConstant(block *block, vs *ast.ValueSpec) ([]constan
return nil, false
}
if es[0].Type != shaderir.NumberExpr {
s.addError(vs.Pos(), fmt.Sprintf("constant expresion must be a number but not: %s", n))
s.addError(vs.Pos(), fmt.Sprintf("constant expression must be a number but not: %s", n))
return nil, false
}
cs = append(cs, constant{