mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Use shorthand initialization from earlier code (#864)
Minor change, but keep the shorthand struct initialization seen previously at line 201: https://github.com/phil-opp/blog_os/blame/master/blog/content/second-edition/posts/03-vga-text-buffer/index.md#L201
This commit is contained in:
@@ -339,7 +339,7 @@ impl Writer {
|
|||||||
|
|
||||||
self.buffer.chars[row][col].write(ScreenChar {
|
self.buffer.chars[row][col].write(ScreenChar {
|
||||||
ascii_character: byte,
|
ascii_character: byte,
|
||||||
color_code: color_code,
|
color_code,
|
||||||
});
|
});
|
||||||
...
|
...
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user