File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
//! Types for the Global Descriptor Table and segment selectors.
2
2
3
+ #[ cfg( doc) ]
4
+ use crate :: instructions:: segmentation:: { Segment , CS , SS } ;
3
5
use crate :: structures:: tss:: TaskStateSegment ;
4
6
use crate :: PrivilegeLevel ;
5
7
use bit_field:: BitField ;
@@ -173,8 +175,7 @@ impl GlobalDescriptorTable {
173
175
/// Loads the GDT in the CPU using the `lgdt` instruction. This does **not** alter any of the
174
176
/// segment registers; you **must** (re)load them yourself using [the appropriate
175
177
/// functions](crate::instructions::segmentation):
176
- /// [SS::set_reg](crate::instructions::segmentation::SS::set_reg),
177
- /// [CSS::set_reg](crate::instructions::segmentation::CSS::set_reg).
178
+ /// [`SS::set_reg()`] and [`CS::set_reg()`].
178
179
#[ cfg( feature = "instructions" ) ]
179
180
#[ inline]
180
181
pub fn load ( & ' static self ) {
@@ -185,8 +186,7 @@ impl GlobalDescriptorTable {
185
186
/// Loads the GDT in the CPU using the `lgdt` instruction. This does **not** alter any of the
186
187
/// segment registers; you **must** (re)load them yourself using [the appropriate
187
188
/// functions](crate::instructions::segmentation):
188
- /// [SS::set_reg](crate::instructions::segmentation::SS::set_reg),
189
- /// [CSS::set_reg](crate::instructions::segmentation::CSS::set_reg).
189
+ /// [`SS::set_reg()`] and [`CS::set_reg()`].
190
190
///
191
191
/// # Safety
192
192
///
You can’t perform that action at this time.
0 commit comments