From 4882c8fc4397a89631363adc6eb7730aafaaa9b4 Mon Sep 17 00:00:00 2001 From: sunface Date: Sat, 15 Jan 2022 09:54:39 +0800 Subject: [PATCH] update readme.md --- README.md | 2 +- book/contents/advance/global-variable.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4332d549..89f37915 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,8 @@ 非常感谢本教程的所有贡献者们,正是有了你们,才有了现在的高质量Rust教程! - [@JesseAtSZ](https://github.com/JesseAtSZ) +- [@mg-chao](https://github.com/mg-chao) - [@1132719438](https://github.com/1132719438) -- [@mg-chao](https://github.com/mg-chao) - [@codemystery](https://github.com/codemystery) - [@chenxuuu](https://github.com/chenxuuu) diff --git a/book/contents/advance/global-variable.md b/book/contents/advance/global-variable.md index 6199ccbe..028304cb 100644 --- a/book/contents/advance/global-variable.md +++ b/book/contents/advance/global-variable.md @@ -279,6 +279,8 @@ fn main() { } ``` +## 标准库中的OnceCell +@todo ## 总结 在Rust中有很多方式可以创建一个全局变量,本章也只是介绍了其中一部分,更多的还等待大家自己去挖掘学习(当然,未来可能本章节会不断完善,最后变成一个巨无霸- , -)。