From 1a95c4800e60328a43335a8fe91e604e6115dafc Mon Sep 17 00:00:00 2001 From: joe Date: Sun, 21 Apr 2024 20:14:21 -0600 Subject: [PATCH] fix docs --- crates/epaint/src/color.rs | 2 +- crates/epaint/src/stroke.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/epaint/src/color.rs b/crates/epaint/src/color.rs index 289783c70fb..54106c10d3f 100644 --- a/crates/epaint/src/color.rs +++ b/crates/epaint/src/color.rs @@ -11,7 +11,7 @@ pub enum ColorMode { Solid(Color32), /// Provide a callback which takes in the path's bounding box and a position and converts it to a color. - /// When used with a path, the bounding box will have a margin of ``feathering + 1.0`` + /// When used with a path, the bounding box will have a margin of [`TessellationOptions::feathering_size_in_pixels`](`crate::tessellator::TessellationOptions::feathering_size_in_pixels`) /// /// **This cannot be serialized** #[cfg_attr(feature = "serde", serde(skip))] diff --git a/crates/epaint/src/stroke.rs b/crates/epaint/src/stroke.rs index cf95d1ed7a9..54d7fe20e56 100644 --- a/crates/epaint/src/stroke.rs +++ b/crates/epaint/src/stroke.rs @@ -81,7 +81,8 @@ impl PathStroke { } /// Create a new `PathStroke` with a UV function - /// The bounding box passed to the callback will have a margin of ``feathering + 1.0`` + /// + /// The bounding box passed to the callback will have a margin of [`TessellationOptions::feathering_size_in_pixels`](`crate::tessellator::TessellationOptions::feathering_size_in_pixels`) #[inline] pub fn new_uv( width: impl Into,