summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorAlex Orlenko <zxteam@protonmail.com>2022-03-25 00:23:35 +0000
committerAlex Orlenko <zxteam@protonmail.com>2022-03-25 00:43:54 +0000
commitec1fa040853ac3be72e2a3e8330e121f23d457e3 (patch)
treec5767dc06a303b4af87f9d7f2aa9b5bdda372cf3 /src/error.rs
parent714dd6249fc64d2715ef8a1d7b24ced753683fef (diff)
downloadmlua-ec1fa040853ac3be72e2a3e8330e121f23d457e3.zip
Update docs
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index 760c49b..e50a2b2 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -37,7 +37,8 @@ pub enum Error {
/// Lua garbage collector error, aka `LUA_ERRGCMM`.
///
/// The Lua VM returns this error when there is an error running a `__gc` metamethod.
- #[cfg(any(feature = "lua53", feature = "lua52"))]
+ #[cfg(any(feature = "lua53", feature = "lua52", doc))]
+ #[cfg_attr(docsrs, doc(cfg(any(feature = "lua53", feature = "lua52"))))]
GarbageCollectorError(StdString),
/// Potentially unsafe action in safe mode.
SafetyError(StdString),