Update Lua::create_userdata doc about sharing metatable.

Closes #175
This commit is contained in:
Alex Orlenko 2022-06-29 00:25:26 +01:00
parent 8cbb3d8fae
commit 9596b97faa
No known key found for this signature in database
GPG key ID: 4C150C250863B96D

View file

@ -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<T>(&self, data: T) -> Result<AnyUserData>
where