Skip to content

Commit 804972b

Browse files
committed
Fix typos in examples/guided_tour
1 parent 727f99e commit 804972b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/guided_tour.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn main() -> Result<()> {
2424

2525
// You can load and evaluate Lua code. The returned type of `Lua::load` is a builder
2626
// 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
2828
// messages are printed.
2929

3030
lua.load(
@@ -89,7 +89,7 @@ fn main() -> Result<()> {
8989
let print: Function = globals.get("print")?;
9090
print.call::<_, ()>("hello from rust")?;
9191

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
9393
// multiple parameters:
9494

9595
print.call::<_, ()>(("hello", "again", "from", "rust"))?;
@@ -100,7 +100,7 @@ fn main() -> Result<()> {
100100
["hello", "yet", "again", "from", "rust"].iter().cloned(),
101101
))?;
102102

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
104104
// first parameter, and the arguments given to the function as the second parameter. The type
105105
// of the arguments can be anything that is convertible from the parameters given by Lua, in
106106
// this case, the function expects two string sequences.

0 commit comments

Comments
 (0)