From 7546bfff74c351ea44fee5a4df4f68ba7acb8b50 Mon Sep 17 00:00:00 2001 From: Robin Date: Thu, 7 Aug 2025 17:10:25 +0200 Subject: [PATCH] Fix phrasing of iff (if and only if) in docs (#6713) --- crates/typst-library/src/visualize/curve.rs | 2 +- crates/typst-library/src/visualize/path.rs | 2 +- crates/typst-library/src/visualize/polygon.rs | 2 +- crates/typst-library/src/visualize/shape.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/typst-library/src/visualize/curve.rs b/crates/typst-library/src/visualize/curve.rs index 9f4a21a4e..b53995464 100644 --- a/crates/typst-library/src/visualize/curve.rs +++ b/crates/typst-library/src/visualize/curve.rs @@ -72,7 +72,7 @@ pub struct CurveElem { /// How to [stroke] the curve. This can be: /// /// Can be set to `{none}` to disable the stroke or to `{auto}` for a - /// stroke of `{1pt}` black if and if only if no fill is given. + /// stroke of `{1pt}` black if and only if no fill is given. /// /// ```example /// #let down = curve.line((40pt, 40pt), relative: true) diff --git a/crates/typst-library/src/visualize/path.rs b/crates/typst-library/src/visualize/path.rs index 46ea7ec32..49ec5f176 100644 --- a/crates/typst-library/src/visualize/path.rs +++ b/crates/typst-library/src/visualize/path.rs @@ -50,7 +50,7 @@ pub struct PathElem { /// How to [stroke] the path. This can be: /// /// Can be set to `{none}` to disable the stroke or to `{auto}` for a - /// stroke of `{1pt}` black if and if only if no fill is given. + /// stroke of `{1pt}` black if and only if no fill is given. #[fold] pub stroke: Smart>, diff --git a/crates/typst-library/src/visualize/polygon.rs b/crates/typst-library/src/visualize/polygon.rs index d9b88f345..201109b8e 100644 --- a/crates/typst-library/src/visualize/polygon.rs +++ b/crates/typst-library/src/visualize/polygon.rs @@ -38,7 +38,7 @@ pub struct PolygonElem { /// How to [stroke] the polygon. This can be: /// /// Can be set to `{none}` to disable the stroke or to `{auto}` for a - /// stroke of `{1pt}` black if and if only if no fill is given. + /// stroke of `{1pt}` black if and only if no fill is given. #[fold] pub stroke: Smart>, diff --git a/crates/typst-library/src/visualize/shape.rs b/crates/typst-library/src/visualize/shape.rs index d4382e6f0..ee5572d13 100644 --- a/crates/typst-library/src/visualize/shape.rs +++ b/crates/typst-library/src/visualize/shape.rs @@ -36,7 +36,7 @@ pub struct RectElem { /// How to stroke the rectangle. This can be: /// /// - `{none}` to disable stroking - /// - `{auto}` for a stroke of `{1pt + black}` if and if only if no fill is + /// - `{auto}` for a stroke of `{1pt + black}` if and only if no fill is /// given. /// - Any kind of [stroke] /// - A dictionary describing the stroke for each side individually. The