Skip to content

Commit

Permalink
Fix clippy::doc_markdown lints (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys authored Dec 27, 2024
1 parent cd6cd5c commit 62d0847
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use crate::{Error, Stream};

/// Representation of a path segment.
///
/// If you want to change the segment type (for example MoveTo to LineTo)
/// If you want to change the segment type (for example `MoveTo` to `LineTo`)
/// you should create a new segment.
/// But you still can change points or make segment relative or absolute.
#[allow(missing_docs)]
Expand Down Expand Up @@ -81,8 +81,8 @@ pub enum PathSegment {
/// # Notes
///
/// The library does not support implicit commands, so they will be converted to an explicit one.
/// It mostly affects an implicit MoveTo, which will be converted, according to the spec,
/// into explicit LineTo.
/// It mostly affects an implicit `MoveTo`, which will be converted, according to the spec,
/// into an explicit `LineTo`.
///
/// Example: `M 10 20 30 40 50 60` -> `M 10 20 L 30 40 L 50 60`
///
Expand Down Expand Up @@ -610,12 +610,12 @@ pub enum SimplePathSegment {
/// A more high-level Path Data parser on top of [`PathParser`] that provides:
///
/// - Relative to absolute segment coordinates conversion
/// - ArcTo to CurveTos conversion
/// - SmoothCurveTo and SmoothQuadratic conversion
/// - HorizontalLineTo and VerticalLineTo to LineTo conversion
/// - Implicit MoveTo after ClosePath handling
/// - `ArcTo` to `CurveTo`s conversion
/// - `SmoothCurveTo` and `SmoothQuadratic` conversion
/// - `HorizontalLineTo` and `VerticalLineTo` to `LineTo` conversion
/// - Implicit `MoveTo` after `ClosePath` handling
///
/// In the end, only absolute MoveTo, LineTo, CurveTo, Quadratic and ClosePath segments
/// In the end, only absolute `MoveTo`, `LineTo`, `CurveTo`, `Quadratic` and `ClosePath` segments
/// will be produced.
#[derive(Clone, Debug)]
pub struct SimplifyingPathParser<'a> {
Expand Down
2 changes: 1 addition & 1 deletion src/viewbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub enum ViewBoxError {
/// One of the numbers is invalid.
InvalidNumber,

/// ViewBox has a negative or zero size.
/// `ViewBox` has a negative or zero size.
InvalidSize,
}

Expand Down

0 comments on commit 62d0847

Please sign in to comment.