Skip to content

Commit

Permalink
Fix order of function arguments in doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic authored and fu5ha committed Oct 22, 2023
1 parent b498c31 commit 2af733e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rp2040-hal/src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
//! let sclk = pins.gpio2.into_function::<FunctionSpi>();
//! let mosi = pins.gpio3.into_function::<FunctionSpi>();
//!
//! let spi_pin_layout = (mosi, sclk);
//! let spi_device = peripherals.SPI0;
//! let spi_pin_layout = (mosi, sclk);
//!
//! let spi = Spi::new(spi_pin_layout, spi_device)
//! let spi = Spi::new(spi_device, spi_pin_layout)
//! .init(&mut peripherals.RESETS, 125_000_000u32.Hz(), 16_000_000u32.Hz(), MODE_0);
//! ```

Expand Down

0 comments on commit 2af733e

Please sign in to comment.