Skip to content

Commit 7e80300

Browse files
committed
Make the interrupts field private
To avoid the confusion that the index starts at entry 32. Access is still possible through the implementations of the Index and IndexMut traits.
1 parent b456dae commit 7e80300

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structures/idt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ pub struct Idt {
352352
/// external interrupt was recognized.
353353
/// - If the interrupt occurs as a result of executing the INTn instruction, the saved
354354
/// instruction pointer points to the instruction after the INTn.
355-
pub interrupts: [IdtEntry<HandlerFunc>; 256 - 32],
355+
interrupts: [IdtEntry<HandlerFunc>; 256 - 32],
356356
}
357357

358358
impl Idt {

0 commit comments

Comments
 (0)