From 442da8c9eb4f6ce86aa3969415cf9e8591cf3b1f Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Mon, 5 Nov 2018 13:34:04 +0100 Subject: [PATCH] Remove wrong Option in code example --- blog/content/second-edition/posts/06-cpu-exceptions/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/content/second-edition/posts/06-cpu-exceptions/index.md b/blog/content/second-edition/posts/06-cpu-exceptions/index.md index 6c6745d3..89bfb540 100644 --- a/blog/content/second-edition/posts/06-cpu-exceptions/index.md +++ b/blog/content/second-edition/posts/06-cpu-exceptions/index.md @@ -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::new(); +static mut IDT: InterruptDescriptorTable = InterruptDescriptorTable::new(); pub fn init_idt() { unsafe {