Skip to content

Commit

Permalink
fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Oct 30, 2023
1 parent d53ccef commit 8798fc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sprite/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use resvg::usvg::Rect;
use serde::ser::SerializeSeq;
use serde::{Serialize, Serializer};

/// Custom Serde field serializer for [`Rect`].
/// Custom Serde field serialiser for [`Rect`].
///
/// Serialises an [`f32`] with a zero fractional part as a [`u32`], and otherwise as an `f32`
/// unchanged. Allows JSON outputted by Spreet to match the JavaScript style of intermingling
Expand Down Expand Up @@ -31,7 +31,7 @@ where
}
}

/// Custom Serde field serializer for a vector of [`Rect`]s.
/// Custom Serde field serialiser for a vector of [`Rect`]s.
///
/// Serialises the left and right edges of each `Rect` as a [`u32`] if the value has no fractional
/// part, or an unchanged [`f32`] otherwise. Allows JSON outputted by Spreet to match the JavaScript
Expand Down Expand Up @@ -60,7 +60,7 @@ where
}
}

/// Custom Serde field serializer for a vector of [`Rect`]s.
/// Custom Serde field serialiser for a vector of [`Rect`]s.
///
/// Serialises the top and bottom edges of each `Rect` as a [`u32`] if the value has no fractional
/// part, or an unchanged [`f32`] otherwise. Allows JSON outputted by Spreet to match the JavaScript
Expand Down

0 comments on commit 8798fc9

Please sign in to comment.