Skip to content

Commit 3d52616

Browse files
committed
Fix doc warnings
1 parent b57a623 commit 3d52616

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ impl Lua {
377377
///
378378
/// This is similar to setting the [`package.preload[modname]`] field.
379379
///
380-
/// [`package.preload[modname]`]: https://www.lua.org/manual/5.4/manual.html#pdf-package.preload
380+
/// [`package.preload[modname]`]: <https://www.lua.org/manual/5.4/manual.html#pdf-package.preload>
381381
#[cfg(not(feature = "luau"))]
382382
#[cfg_attr(docsrs, doc(cfg(not(feature = "luau"))))]
383383
pub fn preload_module(&self, modname: &str, func: Function) -> Result<()> {
@@ -636,7 +636,7 @@ impl Lua {
636636
/// Also this can be used to implement continuous execution limits by instructing Luau VM to
637637
/// yield by returning [`VmState::Yield`].
638638
///
639-
/// This is similar to [`Lua::set_hook`] but in more simplified form.
639+
/// This is similar to `Lua::set_hook` but in more simplified form.
640640
///
641641
/// # Example
642642
///

src/thread.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ impl Thread {
263263
/// You can have multiple hooks for different threads.
264264
///
265265
/// To remove a hook call [`Thread::remove_hook`].
266+
///
267+
/// [`Lua::set_hook`]: crate::Lua::set_hook
266268
#[cfg(not(feature = "luau"))]
267269
#[cfg_attr(docsrs, doc(cfg(not(feature = "luau"))))]
268270
pub fn set_hook<F>(&self, triggers: HookTriggers, callback: F) -> Result<()>

0 commit comments

Comments
 (0)