Skip to content

Commit 49b5295

Browse files
committed
Fix nits/warnings in docs
Signed-off-by: Joe Richey <[email protected]>
1 parent 07f7ebf commit 49b5295

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/structures/gdt.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ impl<const MAX: usize> GlobalDescriptorTable<MAX> {
118118
/// * the provided slice has more than `MAX` entries
119119
/// * the provided slice is empty
120120
/// * the first entry is not zero
121+
#[cfg_attr(not(feature = "instructions"), allow(rustdoc::broken_intra_doc_links))]
121122
#[inline]
122123
pub const fn from_raw_entries(slice: &[u64]) -> Self {
123124
let len = slice.len();
@@ -147,10 +148,10 @@ impl<const MAX: usize> GlobalDescriptorTable<MAX> {
147148
&self.table[..self.len]
148149
}
149150

150-
/// Adds the given segment descriptor to the GDT, returning the segment selector.
151+
/// Appends the given segment descriptor to the GDT, returning the segment selector.
151152
///
152-
/// Note that depending on the type of the [`Descriptor`] this may add either
153-
/// one or two new entries.
153+
/// Note that depending on the type of the [`Descriptor`] this may append
154+
/// either one or two new [`Entry`]s to the table.
154155
///
155156
/// Panics if the GDT doesn't have enough free entries.
156157
#[inline]

0 commit comments

Comments
 (0)