From 0b95c284dcfd338ac766ea70e3161619bc97e7db Mon Sep 17 00:00:00 2001 From: Hussein Hazem Date: Tue, 1 Oct 2024 10:17:13 +0200 Subject: [PATCH] #5 comment out empty lines in rustdoc --- src/can.rs | 2 +- src/config.rs | 6 +++--- src/filter.rs | 2 +- src/message.rs | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/can.rs b/src/can.rs index 547f984..8f0c9d9 100644 --- a/src/can.rs +++ b/src/can.rs @@ -4,7 +4,7 @@ //!# use mcp2517::can::MCP2517; //!# use mcp2517::config::Configuration; //!# use mcp2517::example::*; -//! +//!# //! let sys_clk = ExampleClock::default(); //! let spi_bus = ExampleSPIBus::default(); //! let cs_pin = ExampleCSPin{}; diff --git a/src/config.rs b/src/config.rs index 79d0076..930e6f9 100644 --- a/src/config.rs +++ b/src/config.rs @@ -9,7 +9,7 @@ //! attemps are set to be unlimited. //!``` //!# use mcp2517::config::{FifoConfiguration,PayloadSize,RetransmissionAttempts}; -//! +//!# //! let fifo_config = FifoConfiguration{ //! pl_size: PayloadSize::EightBytes, //! rx_size: 10, @@ -28,7 +28,7 @@ //! //!``` //!# use mcp2517::config::{ClockConfiguration, ClockOutputDivisor, PLLSetting, SystemClockDivisor}; -//! +//!# //! let clock_config = ClockConfiguration{ //! clock_output: ClockOutputDivisor::DivideBy2, //! system_clock: SystemClockDivisor::DivideBy1, @@ -41,7 +41,7 @@ //! Based on the SYSCLK frequency used and the baud rate chosen, the CiNBTCFG regsiter values are configured. //!``` //!# use mcp2517::config::{BitRateConfig,CanBaudRate,SysClk}; -//! +//!# //! let bit_rate_config = BitRateConfig{ //! sys_clk: SysClk::MHz20, //! can_speed: CanBaudRate::Kpbs500 diff --git a/src/filter.rs b/src/filter.rs index b9de347..313f859 100644 --- a/src/filter.rs +++ b/src/filter.rs @@ -5,7 +5,7 @@ //! ``` //!# use mcp2517::filter::Filter; //!# use embedded_can::{Id,ExtendedId}; -//! +//!# //! // ID to match //! let id = Id::Extended(ExtendedId::new(0xC672).unwrap()); //! // Create filter with index 2 diff --git a/src/message.rs b/src/message.rs index 8cf8088..72cbcb8 100644 --- a/src/message.rs +++ b/src/message.rs @@ -8,7 +8,7 @@ //!# use bytes::Bytes; //!# use mcp2517::message::{Can20,TxMessage}; //!# use embedded_can::{Id,StandardId}; -//! +//!# //! // Frame ID //! let message_id = Id::Standard(StandardId::new(0x123).unwrap()); //! // Set message type to CAN2.0 with a maximum of 4 data bytes @@ -26,7 +26,7 @@ //!# use bytes::Bytes; //!# use mcp2517::message::{CanFd,TxMessage}; //!# use embedded_can::{Id,StandardId}; -//! +//!# //! // Frame ID //! let message_id = Id::Standard(StandardId::new(0x123).unwrap()); //! // Set message type to CANfd with a max of 24 data bytes with bit rate switch enabled