We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a4b035 commit 3c7afd7Copy full SHA for 3c7afd7
1 file changed
README.md
@@ -251,13 +251,13 @@ Tests whether the string matches the regex given. `regex` takes
251
Examples:
252
253
```rust
254
-use once_cell::sync::Lazy;
+use std::sync::LazyLock;
255
256
static RE_TWO_CHARS: Lazy<Regex> = Lazy::new(|| {
257
Regex::new(r"[a-z]{2}$").unwrap()
258
});
259
260
-#[validate(regex(path = *RE_TWO_CHARS)]
+#[validate(regex(path = *RE_TWO_CHARS))]
261
```
262
263
### credit\_card
0 commit comments