We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 391132b commit c363c1eCopy full SHA for c363c1e
src/vga_buffer.rs
@@ -170,7 +170,7 @@ fn test_println_output() {
170
let mut writer = WRITER.lock();
171
writeln!(writer, "\n{}", s).expect("writeln failed");
172
for (i, c) in s.chars().enumerate() {
173
- let screen_char = WRITER.lock().buffer.chars[BUFFER_HEIGHT - 2][i].read();
+ let screen_char = writer.buffer.chars[BUFFER_HEIGHT - 2][i].read();
174
assert_eq!(char::from(screen_char.ascii_character), c);
175
}
176
});
0 commit comments