Skip to content

Commit cf5efe5

Browse files
authored
Merge pull request #300 from toku-sa-n/fix_doc
docs(idt): remove a panic note
2 parents da4f8c4 + f6dbd97 commit cf5efe5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/structures/idt.rs

-2
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,6 @@ impl EntryOptions {
773773

774774
/// Set the required privilege level (DPL) for invoking the handler. The DPL can be 0, 1, 2,
775775
/// or 3, the default is 0. If CPL < DPL, a general protection fault occurs.
776-
///
777-
/// This function panics for a DPL > 3.
778776
#[inline]
779777
pub fn set_privilege_level(&mut self, dpl: PrivilegeLevel) -> &mut Self {
780778
self.0.set_bits(13..15, dpl as u16);

0 commit comments

Comments
 (0)