Fix doc warnings

This commit is contained in:
Alex Orlenko
2025-06-06 23:25:36 +01:00
parent b57a6239a6
commit 3d5261640d
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -377,7 +377,7 @@ impl Lua {
///
/// This is similar to setting the [`package.preload[modname]`] field.
///
/// [`package.preload[modname]`]: https://www.lua.org/manual/5.4/manual.html#pdf-package.preload
/// [`package.preload[modname]`]: <https://www.lua.org/manual/5.4/manual.html#pdf-package.preload>
#[cfg(not(feature = "luau"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "luau"))))]
pub fn preload_module(&self, modname: &str, func: Function) -> Result<()> {
@@ -636,7 +636,7 @@ impl Lua {
/// Also this can be used to implement continuous execution limits by instructing Luau VM to
/// yield by returning [`VmState::Yield`].
///
/// This is similar to [`Lua::set_hook`] but in more simplified form.
/// This is similar to `Lua::set_hook` but in more simplified form.
///
/// # Example
///
+2
View File
@@ -263,6 +263,8 @@ impl Thread {
/// You can have multiple hooks for different threads.
///
/// To remove a hook call [`Thread::remove_hook`].
///
/// [`Lua::set_hook`]: crate::Lua::set_hook
#[cfg(not(feature = "luau"))]
#[cfg_attr(docsrs, doc(cfg(not(feature = "luau"))))]
pub fn set_hook<F>(&self, triggers: HookTriggers, callback: F) -> Result<()>