@@ -24,7 +24,7 @@ fn main() -> Result<()> {
24
24
25
25
// You can load and evaluate Lua code. The returned type of `Lua::load` is a builder
26
26
// that allows you to change settings before running Lua code. Here, we are using it to set
27
- // the name of the laoded chunk to "example code", which will be used when Lua error
27
+ // the name of the loaded chunk to "example code", which will be used when Lua error
28
28
// messages are printed.
29
29
30
30
lua. load (
@@ -89,7 +89,7 @@ fn main() -> Result<()> {
89
89
let print: Function = globals. get ( "print" ) ?;
90
90
print. call :: < _ , ( ) > ( "hello from rust" ) ?;
91
91
92
- // This API generally handles variadics using tuples. This is one way to call a function with
92
+ // This API generally handles variadic using tuples. This is one way to call a function with
93
93
// multiple parameters:
94
94
95
95
print. call :: < _ , ( ) > ( ( "hello" , "again" , "from" , "rust" ) ) ?;
@@ -100,7 +100,7 @@ fn main() -> Result<()> {
100
100
[ "hello" , "yet" , "again" , "from" , "rust" ] . iter ( ) . cloned ( ) ,
101
101
) ) ?;
102
102
103
- // You can bind rust functions to Lua as well. Callbacks receive the Lua state inself as their
103
+ // You can bind rust functions to Lua as well. Callbacks receive the Lua state itself as their
104
104
// first parameter, and the arguments given to the function as the second parameter. The type
105
105
// of the arguments can be anything that is convertible from the parameters given by Lua, in
106
106
// this case, the function expects two string sequences.
0 commit comments