diff options
author | 2022-10-19 10:13:07 -0700 | |
---|---|---|
committer | 2022-10-19 10:13:07 -0700 | |
commit | d53e2624255680448282fb6f767c7eb732a74a9f (patch) | |
tree | b653e590e9c487b7e6ea536ff8e8873914953c84 | |
parent | 67ab4fd8c0ebd0e1e638307c6b303cce5cc13e9c (diff) | |
download | iced-d53e2624255680448282fb6f767c7eb732a74a9f.tar.gz iced-d53e2624255680448282fb6f767c7eb732a74a9f.tar.bz2 iced-d53e2624255680448282fb6f767c7eb732a74a9f.zip |
Documentation changes
-rw-r--r-- | graphics/src/gradient/linear.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/graphics/src/gradient/linear.rs b/graphics/src/gradient/linear.rs index 03dd04a2..31dcbe00 100644 --- a/graphics/src/gradient/linear.rs +++ b/graphics/src/gradient/linear.rs @@ -181,9 +181,12 @@ impl Builder { #[derive(Debug, thiserror::Error)] pub enum BuilderError { #[error("Gradients must contain at least one color stop.")] + /// Gradients must contain at least one color stop. MissingColorStop, #[error("Offset {0} must be a unique, finite number.")] + /// Offsets in a gradient must all be unique & finite. DuplicateOffset(f32), - #[error("Offset {0} must be within 0.0..=1.0.")] + #[error("Offset {0} must be between 0.0..=1.0.")] + /// Offsets in a gradient must be between 0.0..=1.0. InvalidOffset(f32), } |