__gc would be safe now, reword MetaMethod docs accordingly

This commit is contained in:
Jonas Schievink 2018-01-26 21:31:01 +01:00
parent 0a4ae8d859
commit ff847ea438
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@ use lua::Lua;
/// Kinds of metamethods that can be overridden. /// Kinds of metamethods that can be overridden.
/// ///
/// For safety reasons, this mechanism does not allow overriding the `__gc` metamethod. [`UserData`] /// Currently, this mechanism does not allow overriding the `__gc` metamethod, since there is
/// implementors can instead just use `Drop`. /// generally no need to do so: [`UserData`] implementors can instead just implement `Drop`.
/// ///
/// [`UserData`]: trait.UserData.html /// [`UserData`]: trait.UserData.html
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]