Skip to content

Commit

Permalink
doc(readme) Append is deprecated in favor of AppendFunction.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Mar 2, 2020
1 parent f57c4f9 commit f6b966b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ code:
* `C.sum` is the cgo function pointer.

```go
imports, _ := wasm.NewImports().Append("sum", sum, C.sum)
imports, _ := wasm.NewImports().AppendFunction("sum", sum, C.sum)
```

Finally, we use `NewInstanceWithImports` to inject the imports:
Expand Down

0 comments on commit f6b966b

Please sign in to comment.