Update Call to WrenInterpret in Docs
Fixes #599 by updating the arguments to WrenInterpret to match the new API.
This commit is contained in:
@@ -131,7 +131,9 @@ VM, waiting to run some code!
|
||||
You execute a string of Wren source code like so:
|
||||
|
||||
:::c
|
||||
WrenInterpretResult result = wrenInterpret(vm,
|
||||
WrenInterpretResult result = wrenInterpret(
|
||||
vm,
|
||||
"my_module",
|
||||
"System.print(\"I am running in a VM!\")");
|
||||
|
||||
The string is a series of one or more statements separated by newlines. Wren
|
||||
|
||||
Reference in New Issue
Block a user