Skip to content

Commit

Permalink
fix old lazy_static syntax for once_cell's
Browse files Browse the repository at this point in the history
  • Loading branch information
pjenvey authored Apr 2, 2024
1 parent 1dd03ed commit 16e76cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ Examples:
```rust
use once_cell::sync::Lazy;

static ref RE_TWO_CHARS: Lazy<Regex> = Lazy::new(|| {
static RE_TWO_CHARS: Lazy<Regex> = Lazy::new(|| {
Regex::new(r"[a-z]{2}$").unwrap()
});

Expand Down

0 comments on commit 16e76cf

Please sign in to comment.