From af35aca6bf3c1af8c3c8c7574ede6cef6b626049 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 17 Jun 2019 11:04:01 -0700 Subject: [PATCH] Fix typo in lazy_static example. It does not compile with the semicolon. --- src/macros-by-example.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macros-by-example.md b/src/macros-by-example.md index 5d786286b..37fe5e9a0 100644 --- a/src/macros-by-example.md +++ b/src/macros-by-example.md @@ -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` ```