From b8742793d6a4ac3bd94e694acce9a96bae92afc0 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Fri, 25 Oct 2024 10:59:36 +0200 Subject: [PATCH] Update docs --- src/state.rs | 2 +- src/traits.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/state.rs b/src/state.rs index 096798b0..a11371dc 100644 --- a/src/state.rs +++ b/src/state.rs @@ -1459,7 +1459,7 @@ impl Lua { } /// Calls the given function with a [`Scope`] parameter, giving the function the ability to - /// create userdata and callbacks from Rust types that are `!Send`` or non-`'static`. + /// create userdata and callbacks from Rust types that are `!Send` or non-`'static`. /// /// The lifetime of any function or userdata created through [`Scope`] lasts only until the /// completion of this method call, on completion all such created values are automatically diff --git a/src/traits.rs b/src/traits.rs index 794e9c3b..5522e461 100644 --- a/src/traits.rs +++ b/src/traits.rs @@ -226,6 +226,7 @@ pub trait LuaNativeFnMut { /// A trait for types that returns a future and can be used as Lua functions. #[cfg(feature = "async")] +#[cfg_attr(docsrs, doc(cfg(feature = "async")))] pub trait LuaNativeAsyncFn { type Output: IntoLuaMulti;