diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-10-10 20:54:13 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-10-10 21:04:10 +0200 |
| commit | 9ac125dea8d6ea6cc01814d04413225845b69d65 (patch) | |
| tree | c7dabcda703e5f5b2704c67920efc490f2f8fb57 /src/geom | |
| parent | d4cc8c775d4c579aeac69ca2d212a604c67043b0 (diff) | |
Rename `State` to `Style` and move it into its own module
Diffstat (limited to 'src/geom')
| -rw-r--r-- | src/geom/paint.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geom/paint.rs b/src/geom/paint.rs index 2ac11b56..1d82966c 100644 --- a/src/geom/paint.rs +++ b/src/geom/paint.rs @@ -59,7 +59,7 @@ impl FromStr for RgbaColor { /// - `7a03c2` (without alpha), /// - `abcdefff` (with alpha). /// - /// Both lower and upper case is fine. + /// The hashtag is optional and both lower and upper case are fine. fn from_str(hex_str: &str) -> Result<Self, Self::Err> { let hex_str = hex_str.strip_prefix('#').unwrap_or(hex_str); if !hex_str.is_ascii() { |
