File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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 ///
Original file line number Diff line number Diff 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 < ( ) >
You can’t perform that action at this time.
0 commit comments