From 551ea99d05166b0be50792f767ddd38b996e32fa Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 17 May 2023 14:41:46 +0200 Subject: Show default values in documentation Fixes #169 Fixes #1102 --- library/src/visualize/polygon.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'library/src/visualize/polygon.rs') diff --git a/library/src/visualize/polygon.rs b/library/src/visualize/polygon.rs index 2e75aff5..d2d3132a 100644 --- a/library/src/visualize/polygon.rs +++ b/library/src/visualize/polygon.rs @@ -29,15 +29,9 @@ pub struct PolygonElem { /// How to stroke the polygon. This can be: /// - /// - `{none}` to disable the stroke. - /// - `{auto}` for a stroke of `{1pt}` black if and if only if no fill is - /// given. - /// - A length specifying the stroke's thickness. The color is inherited, - /// defaulting to black. - /// - A color to use for the stroke. The thickness is inherited, defaulting - /// to `{1pt}`. - /// - A stroke combined from color and thickness using the `+` operator as - /// in `{2pt + red}`. + /// See the [line's documentation]($func/line.stroke) for more details. 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. #[resolve] #[fold] pub stroke: Smart>, -- cgit v1.2.3