aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2024-11-19 16:06:27 -0800
committerAyke <[email protected]>2024-11-20 07:53:02 +0100
commit548fba82e691b125bdac71f6c393f67fcf4d769f (patch)
tree61ef98aa78109bea2ddc00edf460c3bef52344af
parent2d26b6cc8dd9b9bb81274e29335790f9b2682e7c (diff)
downloadtinygo-548fba82e691b125bdac71f6c393f67fcf4d769f.tar.gz
tinygo-548fba82e691b125bdac71f6c393f67fcf4d769f.zip
compiler: Fix wasmimport -> wasmexport in error message
Fixes #4615
-rw-r--r--compiler/symbol.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/symbol.go b/compiler/symbol.go
index 9b9b1d10e..e53df30f1 100644
--- a/compiler/symbol.go
+++ b/compiler/symbol.go
@@ -345,7 +345,7 @@ func (c *compilerContext) parsePragmas(info *functionInfo, f *ssa.Function) {
continue
}
if len(parts) != 2 {
- c.addError(f.Pos(), fmt.Sprintf("expected one parameter to //go:wasmimport, not %d", len(parts)-1))
+ c.addError(f.Pos(), fmt.Sprintf("expected one parameter to //go:wasmexport, not %d", len(parts)-1))
continue
}
name := parts[1]