Skip to content

Commit 548fba8

Browse files
dgryskiaykevl
authored andcommitted
compiler: Fix wasmimport -> wasmexport in error message
Fixes #4615
1 parent 2d26b6c commit 548fba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/symbol.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ func (c *compilerContext) parsePragmas(info *functionInfo, f *ssa.Function) {
345345
continue
346346
}
347347
if len(parts) != 2 {
348-
c.addError(f.Pos(), fmt.Sprintf("expected one parameter to //go:wasmimport, not %d", len(parts)-1))
348+
c.addError(f.Pos(), fmt.Sprintf("expected one parameter to //go:wasmexport, not %d", len(parts)-1))
349349
continue
350350
}
351351
name := parts[1]

0 commit comments

Comments
 (0)