summaryrefslogtreecommitdiff
path: root/examples/module/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/module/src/lib.rs')
-rw-r--r--examples/module/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/module/src/lib.rs b/examples/module/src/lib.rs
index 24056a1..38cc0fd 100644
--- a/examples/module/src/lib.rs
+++ b/examples/module/src/lib.rs
@@ -8,7 +8,7 @@ fn used_memory(lua: &Lua, _: ()) -> LuaResult<usize> {
Ok(lua.used_memory())
}
-#[mlua_derive::lua_module]
+#[mlua::lua_module]
fn rust_module(lua: &Lua) -> LuaResult<LuaTable> {
let exports = lua.create_table()?;
exports.set("sum", lua.create_function(sum)?)?;