From a2eef321f0dc33259e7fa2a4bd3ce7bc25da4d3f Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Thu, 21 Nov 2024 15:42:56 +0100 Subject: [PATCH] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 539cccd3..6d161587 100644 --- a/README.md +++ b/README.md @@ -207,6 +207,9 @@ const MIN_CONSTANT: i32 = 0; #[validate(range(min = "crate::MAX_CONSTANT"))] #[validate(range(exclusive_min = 0.0, max = 100.0))] #[validate(range(exclusive_max = 10))] +// If you get an error saying the literal doesn't fit in i32, specify a number type in the literal directly +#[validate(range(max = 1000000000u64))] + ``` ### must_match