From 9596b97faabafe2876467048ec9bb82c1c1ad6e5 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Wed, 29 Jun 2022 00:25:26 +0100 Subject: [PATCH] Update Lua::create_userdata doc about sharing metatable. Closes #175 --- src/lua.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lua.rs b/src/lua.rs index 9aa654b..77a79a7 100644 --- a/src/lua.rs +++ b/src/lua.rs @@ -1721,6 +1721,8 @@ impl Lua { } /// Create a Lua userdata object from a custom userdata type. + /// + /// All userdata instances of type `T` shares the same metatable. #[inline] pub fn create_userdata(&self, data: T) -> Result where