diff options
Diffstat (limited to 'compiler/symbol.go')
-rw-r--r-- | compiler/symbol.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/symbol.go b/compiler/symbol.go index 5ebdee147..83bb4ccb2 100644 --- a/compiler/symbol.go +++ b/compiler/symbol.go @@ -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 { |