aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Junger2018-07-22 13:36:48 +0200
committerGitHub2018-07-22 13:36:48 +0200
commit8cb9b5ee7250c98616d1d7e2e625f82338beb03c (patch)
treec39134e42aea852fe9eca523955245df69588c77
parentdcc6b3ab4e917b939ab5d436671a68a1ef58e752 (diff)
downloadvalidator-8cb9b5ee7250c98616d1d7e2e625f82338beb03c.tar.bz2
Fixed closing parentheses in README
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 28b6b87..aac2903 100644
--- a/README.md
+++ b/README.md
@@ -130,7 +130,7 @@ mentioned is missing or has a different type than the field the attribute is on.
Examples:
```rust
-#[validate(must_match = "password2"))]
+#[validate(must_match = "password2")]
```
### contains
@@ -140,7 +140,7 @@ Tests whether the string contains the substring given or if a key is present in
Examples:
```rust
-#[validate(contains = "gmail"))]
+#[validate(contains = "gmail")]
```
### regex
@@ -150,7 +150,7 @@ Tests whether the string matchs the regex given. `regex` takes
Examples:
```rust
-#[validate(regex = "ALLOWED_USERNAMES_RE"))]
+#[validate(regex = "ALLOWED_USERNAMES_RE")]
```
### credit\_card
@@ -178,7 +178,7 @@ Examples:
```rust
#[validate(custom = "validate_something")]
-#[validate(custom = "::utils::validate_something"]
+#[validate(custom = "::utils::validate_something")]
```
## Struct level validation