diff --git a/blog/post/2015-10-23-printing-to-screen.md b/blog/post/2015-10-23-printing-to-screen.md index 95d77ad4..7e33ef3d 100644 --- a/blog/post/2015-10-23-printing-to-screen.md +++ b/blog/post/2015-10-23-printing-to-screen.md @@ -414,7 +414,7 @@ To print to the VGA buffer, we just copy the `println!` macro and modify the `pr macro_rules! print { ($($arg:tt)*) => ({ use core::fmt::Write; - let writer = $crate::vga_buffer::WRITER.lock(); + let mut writer = $crate::vga_buffer::WRITER.lock(); writer.write_fmt(format_args!($($arg)*)).unwrap(); }); }