diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -65,7 +65,7 @@ pub fn generate(width: usize, height: usize, skew: Option<f64>) { assert!(width >= 1, "Width must be a positive number!"); assert!(height >= 1, "Height must be a positive number!"); assert!( - skew >= 0.0 && skew <= 1.0, + (0.0..=1.0).contains(&skew), "Skew must be between zero and one inclusive!" ); |