Skip to content

Commit

Permalink
Merge pull request rust-lang#622 from ehuss/lazy_static-fix
Browse files Browse the repository at this point in the history
Fix typo in lazy_static example.
  • Loading branch information
Centril authored Jun 17, 2019
2 parents d79ddd0 + af35aca commit 1ed0941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macros-by-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ when `#[macro_use]` is applied to a module.
#[macro_use(lazy_static)] // Or #[macro_use] to import all macros.
extern crate lazy_static;
lazy_static!{};
lazy_static!{}
// self::lazy_static!{} // Error: lazy_static is not defined in `self`
```

Expand Down

0 comments on commit 1ed0941

Please sign in to comment.