Skip to content

Commit 62d0847

Browse files
Fix clippy::doc_markdown lints (#37)
1 parent cd6cd5c commit 62d0847

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/path.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{Error, Stream};
55

66
/// Representation of a path segment.
77
///
8-
/// If you want to change the segment type (for example MoveTo to LineTo)
8+
/// If you want to change the segment type (for example `MoveTo` to `LineTo`)
99
/// you should create a new segment.
1010
/// But you still can change points or make segment relative or absolute.
1111
#[allow(missing_docs)]
@@ -81,8 +81,8 @@ pub enum PathSegment {
8181
/// # Notes
8282
///
8383
/// The library does not support implicit commands, so they will be converted to an explicit one.
84-
/// It mostly affects an implicit MoveTo, which will be converted, according to the spec,
85-
/// into explicit LineTo.
84+
/// It mostly affects an implicit `MoveTo`, which will be converted, according to the spec,
85+
/// into an explicit `LineTo`.
8686
///
8787
/// Example: `M 10 20 30 40 50 60` -> `M 10 20 L 30 40 L 50 60`
8888
///
@@ -610,12 +610,12 @@ pub enum SimplePathSegment {
610610
/// A more high-level Path Data parser on top of [`PathParser`] that provides:
611611
///
612612
/// - Relative to absolute segment coordinates conversion
613-
/// - ArcTo to CurveTos conversion
614-
/// - SmoothCurveTo and SmoothQuadratic conversion
615-
/// - HorizontalLineTo and VerticalLineTo to LineTo conversion
616-
/// - Implicit MoveTo after ClosePath handling
613+
/// - `ArcTo` to `CurveTo`s conversion
614+
/// - `SmoothCurveTo` and `SmoothQuadratic` conversion
615+
/// - `HorizontalLineTo` and `VerticalLineTo` to `LineTo` conversion
616+
/// - Implicit `MoveTo` after `ClosePath` handling
617617
///
618-
/// In the end, only absolute MoveTo, LineTo, CurveTo, Quadratic and ClosePath segments
618+
/// In the end, only absolute `MoveTo`, `LineTo`, `CurveTo`, `Quadratic` and `ClosePath` segments
619619
/// will be produced.
620620
#[derive(Clone, Debug)]
621621
pub struct SimplifyingPathParser<'a> {

src/viewbox.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub enum ViewBoxError {
99
/// One of the numbers is invalid.
1010
InvalidNumber,
1111

12-
/// ViewBox has a negative or zero size.
12+
/// `ViewBox` has a negative or zero size.
1313
InvalidSize,
1414
}
1515

0 commit comments

Comments
 (0)