Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 74de644

Browse files
authored
Update README for 0.1.1
LUA_SHARED now returns a reference by default.
1 parent 9d57cff commit 74de644

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ use rglua::{
4848

4949
#[no_mangle]
5050
pub extern fn gmod13_open(state: LuaState) -> i32 {
51-
let shared = &*LUA_SHARED;
51+
let shared = *LUA_SHARED;
5252
shared.lua_getglobal(state, cstring!("print") );
5353
shared.lua_pushstring(state, cstring!("Hello from rust!") );
5454
shared.lua_call(state, 1, 0);

0 commit comments

Comments
 (0)