Skip to content

Commit 305da02

Browse files
committed
Fix doc tests
1 parent 40a5ee1 commit 305da02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
target_arch = "x86_64",
77
doc = "
88
## With usual serial port
9-
```rust
9+
```no_run
1010
use uart_16550::SerialPort;
1111
1212
const SERIAL_IO_PORT: u16 = 0x3F8;
@@ -25,7 +25,7 @@ let data = serial_port.receive();
2525

2626
//! ## With memory mapped serial port
2727
//!
28-
//! ```rust
28+
//! ```no_run
2929
//! use uart_16550::MmioSerialPort;
3030
//!
3131
//! const SERIAL_PORT_BASE_ADDRESS: usize = 0x1000_0000;
@@ -85,4 +85,4 @@ bitflags! {
8585
const OUTPUT_EMPTY = 1 << 5;
8686
// 6 and 7 unknown
8787
}
88-
}
88+
}

0 commit comments

Comments
 (0)