Skip to content

Commit 33bf3ff

Browse files
committed
Fix doc warnings
1 parent 0f3fdb0 commit 33bf3ff

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

src/debug.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//! Lua debugging interface.
22
//!
33
//! This module provides access to the Lua debug interface, allowing inspection of the call stack,
4-
//! and function information. The main types are [`Debug`] for accessing debug information and
5-
//! [`HookTriggers`] for configuring debug hooks.
4+
//! and function information. The main types are [`struct@Debug`] for accessing debug information
5+
//! and [`HookTriggers`] for configuring debug hooks.
66
77
use std::borrow::Cow;
88
use std::os::raw::c_int;

src/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,8 @@ impl Lua {
909909

910910
/// Gets information about the interpreter runtime stack at the given level.
911911
///
912-
/// This function calls callback `f`, passing the [`Debug`] structure that can be used to get
913-
/// information about the function executing at a given level.
912+
/// This function calls callback `f`, passing the [`struct@Debug`] structure that can be used to
913+
/// get information about the function executing at a given level.
914914
/// Level `0` is the current running function, whereas level `n+1` is the function that has
915915
/// called level `n` (except for tail calls, which do not count in the stack).
916916
pub fn inspect_stack<R>(&self, level: usize, f: impl FnOnce(&Debug) -> R) -> Option<R> {

src/string.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
//! # Main Types
66
//!
77
//! - [`LuaString`] - A handle to an internal Lua string (may not be valid UTF-8).
8-
//! - [`BorrowedStr`] - A borrowed `&str` view of a Lua string that holds a strong reference to the Lua state.
9-
//! - [`BorrowedBytes`] - A borrowed `&[u8]` view of a Lua string that holds a strong reference to the Lua state.
8+
//! - [`BorrowedStr`] - A borrowed `&str` view of a Lua string that holds a strong reference to the
9+
//! Lua state.
10+
//! - [`BorrowedBytes`] - A borrowed `&[u8]` view of a Lua string that holds a strong reference to
11+
//! the Lua state.
1012
1113
use std::borrow::{Borrow, Cow};
1214
use std::hash::{Hash, Hasher};

src/thread.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ impl Thread {
449449
/// Please note that Luau links environment table with chunk when loading it into Lua state.
450450
/// Therefore you need to load chunks into a thread to link with the thread environment.
451451
///
452+
/// [`Lua::sandbox`]: crate::Lua::sandbox
453+
///
452454
/// # Examples
453455
///
454456
/// ```

0 commit comments

Comments
 (0)