mirror of
https://github.com/fossasia/badgemagic-rs
synced 2025-06-24 15:53:58 +00:00
chore(typo): Fix typo in src/protocol.rs
This commit is contained in:
parent
44222843d8
commit
a08462949d
1 changed files with 3 additions and 3 deletions
|
@ -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]> {
|
||||||
|
|
Loading…
Reference in a new issue