compiler: fixup Sprintf uses

This commit is contained in:
Damian Gryski
2024-08-14 12:09:01 -07:00
committed by Ron Evans
parent 9932f2e126
commit 4d60d679d3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -353,7 +353,7 @@ func (c *compilerContext) checkWasmImport(f *ssa.Function, pragma string) {
}
if f.Blocks != nil {
// Defined functions cannot be exported.
c.addError(f.Pos(), fmt.Sprintf("can only use //go:wasmimport on declarations"))
c.addError(f.Pos(), "can only use //go:wasmimport on declarations")
return
}
if f.Signature.Results().Len() > 1 {