From ff847ea438651129b60377bbeff7d5bef1f9c6cf Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Fri, 26 Jan 2018 21:31:01 +0100 Subject: [PATCH] __gc would be safe now, reword MetaMethod docs accordingly --- src/userdata.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/userdata.rs b/src/userdata.rs index aac80df..8474a6a 100644 --- a/src/userdata.rs +++ b/src/userdata.rs @@ -12,8 +12,8 @@ use lua::Lua; /// Kinds of metamethods that can be overridden. /// -/// For safety reasons, this mechanism does not allow overriding the `__gc` metamethod. [`UserData`] -/// implementors can instead just use `Drop`. +/// Currently, this mechanism does not allow overriding the `__gc` metamethod, since there is +/// generally no need to do so: [`UserData`] implementors can instead just implement `Drop`. /// /// [`UserData`]: trait.UserData.html #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]