diff options
author | Jonas Schievink <jonasschievink@gmail.com> | 2017-06-18 14:31:38 +0200 |
---|---|---|
committer | Jonas Schievink <jonasschievink@gmail.com> | 2017-06-18 14:31:38 +0200 |
commit | de0f3dc3c0cb8eb7bfb077be8e3706f0f4e9b74a (patch) | |
tree | 736b74a52bc68e18f5ad849495852499dda78146 /examples | |
parent | ba9f7a2ee722bf5cb47decff3a13383ebeb2a305 (diff) | |
download | mlua-de0f3dc3c0cb8eb7bfb077be8e3706f0f4e9b74a.zip |
Rename `Lua::load` to `Lua::exec`
When talking about "loading" Lua code, it usually means compiling a
chunk of code into a runnable Lua function, but without actually
running it. This makes that clear.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/examples.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/examples.rs b/examples/examples.rs index 28f5dbf..df3abe9 100644 --- a/examples/examples.rs +++ b/examples/examples.rs @@ -29,7 +29,7 @@ fn examples() -> LuaResult<()> { // You can load and evaluate lua code. The second parameter here gives the // chunk a better name when lua error messages are printed. - lua.load::<()>( + lua.exec::<()>( r#" global = 'foo'..'bar' "#, |