Skip to content

Commit e3a30f0

Browse files
committed
example format fix
1 parent ed3d2dc commit e3a30f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/serial.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ uart_pins! {
352352
/// Serial abstraction
353353
///
354354
/// # Examples
355+
///
355356
/// ```
356357
/// let dp = pac::Peripherals::take().unwrap();
357358
/// let rcc = dp.RCC.constrain();
@@ -363,7 +364,7 @@ uart_pins! {
363364
/// &ccdr.clocks
364365
/// ).unwrap();
365366
/// // core::fmt::Write is implemented for tx.
366-
/// writeln!(tx, Test\r").unwrap();
367+
/// writeln!(tx, "Test\r").unwrap();
367368
/// ```
368369
pub struct Serial<USART> {
369370
pub(crate) usart: USART,

0 commit comments

Comments
 (0)