chore(typo): Fix typo in src/protocol.rs

This commit is contained in:
Valentin Weber 2025-02-21 21:49:25 +01:00
parent 44222843d8
commit a08462949d
No known key found for this signature in database
GPG key ID: 44797000F143F522

View file

@ -54,7 +54,7 @@ impl Style {
self self
} }
/// Show a dotted border arround the display. /// Show a dotted border around the display.
/// ``` /// ```
/// use badgemagic::protocol::Style; /// use badgemagic::protocol::Style;
/// # ( /// # (
@ -241,7 +241,7 @@ impl Timestamp {
/// Buffer to create a payload /// Buffer to create a payload
/// ///
/// A payload consits of up to 8 messages /// A payload consists of up to 8 messages
/// ``` /// ```
/// # #[cfg(feature = "embedded-graphics")] /// # #[cfg(feature = "embedded-graphics")]
/// # fn main() { /// # fn main() {
@ -368,7 +368,7 @@ impl PayloadBuffer {
&self.data &self.data
} }
/// Convert the payload buffe into bytes (with padding) /// Convert the payload buffer into bytes (with padding)
#[allow(clippy::missing_panics_doc)] // should never panic #[allow(clippy::missing_panics_doc)] // should never panic
#[must_use] #[must_use]
pub fn into_padded_bytes(self) -> impl AsRef<[u8]> { pub fn into_padded_bytes(self) -> impl AsRef<[u8]> {