Skip to content

Commit b874279

Browse files
committed
Update docs
1 parent 446d63a commit b874279

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ impl Lua {
14591459
}
14601460

14611461
/// Calls the given function with a [`Scope`] parameter, giving the function the ability to
1462-
/// create userdata and callbacks from Rust types that are `!Send`` or non-`'static`.
1462+
/// create userdata and callbacks from Rust types that are `!Send` or non-`'static`.
14631463
///
14641464
/// The lifetime of any function or userdata created through [`Scope`] lasts only until the
14651465
/// completion of this method call, on completion all such created values are automatically

src/traits.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ pub trait LuaNativeFnMut<A: FromLuaMulti> {
226226

227227
/// A trait for types that returns a future and can be used as Lua functions.
228228
#[cfg(feature = "async")]
229+
#[cfg_attr(docsrs, doc(cfg(feature = "async")))]
229230
pub trait LuaNativeAsyncFn<A: FromLuaMulti> {
230231
type Output: IntoLuaMulti;
231232

0 commit comments

Comments
 (0)