File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ impl<const MAX: usize> GlobalDescriptorTable<MAX> {
118
118
/// * the provided slice has more than `MAX` entries
119
119
/// * the provided slice is empty
120
120
/// * the first entry is not zero
121
+ #[ cfg_attr( not( feature = "instructions" ) , allow( rustdoc:: broken_intra_doc_links) ) ]
121
122
#[ inline]
122
123
pub const fn from_raw_entries ( slice : & [ u64 ] ) -> Self {
123
124
let len = slice. len ( ) ;
@@ -147,10 +148,10 @@ impl<const MAX: usize> GlobalDescriptorTable<MAX> {
147
148
& self . table [ ..self . len ]
148
149
}
149
150
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.
151
152
///
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 .
154
155
///
155
156
/// Panics if the GDT doesn't have enough free entries.
156
157
#[ inline]
You can’t perform that action at this time.
0 commit comments