Skip to content

Commit

Permalink
Remove wrong Option in code example
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp authored Nov 5, 2018
1 parent 24c6a85 commit 442da8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ However, there is a problem: Statics are immutable, so we can't modify the break
[`static mut`]: https://doc.rust-lang.org/book/second-edition/ch19-01-unsafe-rust.html#accessing-or-modifying-a-mutable-static-variable

```rust
static mut IDT: Option<InterruptDescriptorTable> = InterruptDescriptorTable::new();
static mut IDT: InterruptDescriptorTable = InterruptDescriptorTable::new();

pub fn init_idt() {
unsafe {
Expand Down

0 comments on commit 442da8c

Please sign in to comment.