aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 48ef59b..44e4fa9 100644
--- a/README.md
+++ b/README.md
@@ -97,9 +97,9 @@ Tests whether a number is in the given range. `range` takes 2 number arguments:
Examples:
```rust
-#[validate(range(min = 1, max = 10))]
-#[validate(range(min = 1, max = 10.8))]
-#[validate(range(min = 1.1, max = 10.8))]
+#[validate(range(min = "1", max = "10"))]
+#[validate(range(min = "1", max = "10.8"))]
+#[validate(range(min = "1.1", max = "10.8"))]
```
### must_match