From a16a4e974d2a13688c521fc829264e384fcddf2d Mon Sep 17 00:00:00 2001 From: Robin Date: Thu, 7 Aug 2025 17:47:12 +0200 Subject: [PATCH] Fix curve docs for fill (refer to curve instead of rectangle) (#6714) --- crates/typst-library/src/visualize/curve.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/typst-library/src/visualize/curve.rs b/crates/typst-library/src/visualize/curve.rs index 7ba9bc15c..13634eb77 100644 --- a/crates/typst-library/src/visualize/curve.rs +++ b/crates/typst-library/src/visualize/curve.rs @@ -43,8 +43,8 @@ use super::FixedStroke; pub struct CurveElem { /// How to fill the curve. /// - /// When setting a fill, the default stroke disappears. To create a - /// rectangle with both fill and stroke, you have to configure both. + /// When setting a fill, the default stroke disappears. To create a curve + /// with both fill and stroke, you have to configure both. pub fill: Option, /// The drawing rule used to fill the curve.