From 022b39fe792b97f2e43eae75d2d36242493ac29b Mon Sep 17 00:00:00 2001 From: Rustln Date: Mon, 11 Apr 2022 17:29:01 +0800 Subject: [PATCH] Update global-variable.md --- src/advance/global-variable.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/advance/global-variable.md b/src/advance/global-variable.md index 994482d7..05078bbd 100644 --- a/src/advance/global-variable.md +++ b/src/advance/global-variable.md @@ -360,10 +360,7 @@ impl Logger { 以上代码我们声明了一个 `global()` 关联函数,并在其内部调用 `get_or_init` 进行初始化 `Logger`,之后在不同线程上多次调用 `Logger::global()` 获取其实例: -``` - Compiling study v0.1.0 (D:\Workplaces\Rust\study) - Finished dev [unoptimized + debuginfo] target(s) in 0.63s - Running `target\debug\study.exe` +```console Logger is being created... some message other message