compiler: Fix wasmimport -> wasmexport in error message

Fixes #4615
This commit is contained in:
Damian Gryski
2024-11-19 16:06:27 -08:00
committed by Ayke
parent 2d26b6cc8d
commit 548fba82e6
+1 -1
View File
@@ -345,7 +345,7 @@ func (c *compilerContext) parsePragmas(info *functionInfo, f *ssa.Function) {
continue continue
} }
if len(parts) != 2 { 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 continue
} }
name := parts[1] name := parts[1]