We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2348fd0 commit ec73447Copy full SHA for ec73447
README.rst
@@ -595,7 +595,10 @@ Sharing byte code is safe as it is read only and cannot be altered by lua script
595
596
// Example shows how to share the compiled byte code from a lua script between multiple VMs.
597
func Example() {
598
- codeToShare := CompileLua("mylua.lua")
+ codeToShare, err := CompileLua("mylua.lua")
599
+ if err != nil {
600
+ panic(err)
601
+ }
602
a := lua.NewState()
603
b := lua.NewState()
604
c := lua.NewState()
0 commit comments