Add #[doc(hidden)] to {vga_buffer, serial}::_print functions

This commit is contained in:
Philipp Oppermann
2018-11-19 10:14:47 +01:00
parent dbfb732325
commit ad7c11c0a3
5 changed files with 13 additions and 2 deletions

View File

@@ -97,6 +97,7 @@ Like with the [VGA text buffer][vga lazy-static], we use `lazy_static` and a spi
To make the serial port easily usable, we add `serial_print!` and `serial_println!` macros:
```rust
#[doc(hidden)]
pub fn _print(args: ::core::fmt::Arguments) {
use core::fmt::Write;
SERIAL1.lock().write_fmt(args).expect("Printing to serial failed");