aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Prouillet2017-01-17 20:33:30 +0900
committerGitHub2017-01-17 20:33:30 +0900
commitb1f1b7f62e670b948c98ff9e10b7f1a1519f9edf (patch)
treed568ad8d5ab26cf9030abff4e9320a73d0a47523
parent77f89b6f2d75cdf8a03062fb60ffd379918030a4 (diff)
downloadvalidator-b1f1b7f62e670b948c98ff9e10b7f1a1519f9edf.tar.bz2
Update 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