mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Remove wrong Option in code example
This commit is contained in:
committed by
GitHub
parent
24c6a85f18
commit
442da8c9eb
@@ -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
|
[`static mut`]: https://doc.rust-lang.org/book/second-edition/ch19-01-unsafe-rust.html#accessing-or-modifying-a-mutable-static-variable
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
static mut IDT: Option<InterruptDescriptorTable> = InterruptDescriptorTable::new();
|
static mut IDT: InterruptDescriptorTable = InterruptDescriptorTable::new();
|
||||||
|
|
||||||
pub fn init_idt() {
|
pub fn init_idt() {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|||||||
Reference in New Issue
Block a user