Skip to content

Commit

Permalink
Merge pull request #302 from toku-sa-n/fix_typo
Browse files Browse the repository at this point in the history
fix(gdt): typo
  • Loading branch information
josephlr authored Sep 1, 2021
2 parents cf5efe5 + 09dc430 commit 27ab505
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/structures/gdt.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! Types for the Global Descriptor Table and segment selectors.
#[cfg(doc)]
use crate::instructions::segmentation::{Segment, CS, SS};
use crate::structures::tss::TaskStateSegment;
use crate::PrivilegeLevel;
use bit_field::BitField;
Expand Down Expand Up @@ -173,8 +175,7 @@ impl GlobalDescriptorTable {
/// Loads the GDT in the CPU using the `lgdt` instruction. This does **not** alter any of the
/// segment registers; you **must** (re)load them yourself using [the appropriate
/// functions](crate::instructions::segmentation):
/// [SS::set_reg](crate::instructions::segmentation::SS::set_reg),
/// [CSS::set_reg](crate::instructions::segmentation::CSS::set_reg).
/// [`SS::set_reg()`] and [`CS::set_reg()`].
#[cfg(feature = "instructions")]
#[inline]
pub fn load(&'static self) {
Expand All @@ -185,8 +186,7 @@ impl GlobalDescriptorTable {
/// Loads the GDT in the CPU using the `lgdt` instruction. This does **not** alter any of the
/// segment registers; you **must** (re)load them yourself using [the appropriate
/// functions](crate::instructions::segmentation):
/// [SS::set_reg](crate::instructions::segmentation::SS::set_reg),
/// [CSS::set_reg](crate::instructions::segmentation::CSS::set_reg).
/// [`SS::set_reg()`] and [`CS::set_reg()`].
///
/// # Safety
///
Expand Down

0 comments on commit 27ab505

Please sign in to comment.