From 35fa76263efc28cf2b70a730d5c99aedf34fd6c5 Mon Sep 17 00:00:00 2001 From: Alex Orlenko Date: Fri, 25 Oct 2024 10:59:36 +0200 Subject: [PATCH] Update docs --- src/lib.rs | 1 + src/state.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index eb5ddfa2..da41d4a9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -128,6 +128,7 @@ pub use crate::hook::HookTriggers; pub use crate::{buffer::Buffer, chunk::Compiler, function::CoverageInfo, vector::Vector}; #[cfg(feature = "async")] +#[cfg_attr(docsrs, doc(cfg(feature = "async")))] pub use crate::{thread::AsyncThread, traits::LuaNativeAsyncFn}; #[cfg(feature = "serialize")] 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