Skip to content

Commit

Permalink
Typo in lazy-static readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 4, 2018
1 parent 3c383c1 commit 636afa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/lazy-static/README.md
Expand Up @@ -10,7 +10,7 @@ The library implements a `lazy_static!` macro similar to the one from the real
crates.io.

```rust
lazy_static {
lazy_static! {
static ref USERNAME: Regex = Regex::new("^[a-z0-9_-]{3,16}$").unwrap();
}
```
Expand All @@ -30,8 +30,8 @@ warning: come on, pick a more creative name
| ^^^
```

And if you try to lazily initialize `() = ()`, the macro will outright refuse
the compile it for you.
And if you try to lazily initialize `() = ()`, the macro will outright refuse to
compile it for you.

```
error: I can't think of a legitimate use for lazily initializing the value `()`
Expand Down

0 comments on commit 636afa1

Please sign in to comment.