Correcting python GCD example (#5324)
This commit is contained in:
@@ -58,10 +58,10 @@ API](https://bytecodealliance.github.io/wasmtime-py/):
|
|||||||
from wasmtime import Store, Module, Instance
|
from wasmtime import Store, Module, Instance
|
||||||
|
|
||||||
store = Store()
|
store = Store()
|
||||||
module = Module.from_file(store, 'gcd.wat')
|
module = Module.from_file(store.engine, 'gcd.wat')
|
||||||
instance = Instance(module, [])
|
instance = Instance(store, module, [])
|
||||||
gcd = instance.get_export('gcd')
|
gcd = instance.exports(store)['gcd']
|
||||||
print("gcd(27, 6) =", gcd(27, 6))
|
print("gcd(27, 6) = %d" % gcd(store, 27, 6))
|
||||||
```
|
```
|
||||||
|
|
||||||
## More examples and contributing
|
## More examples and contributing
|
||||||
|
|||||||
Reference in New Issue
Block a user