From 1034a3477b16537a0a6831a3967a0f8247423d14 Mon Sep 17 00:00:00 2001 From: Stephane Raux Date: Sun, 28 Jan 2018 19:43:27 -0800 Subject: [PATCH] Fixed statement about static and Sync --- first-edition/src/const-and-static.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/first-edition/src/const-and-static.md b/first-edition/src/const-and-static.md index b7f3a49d7..e50a21367 100644 --- a/first-edition/src/const-and-static.md +++ b/first-edition/src/const-and-static.md @@ -38,6 +38,9 @@ reference stored in a static has a [`'static` lifetime][lifetimes]: static NAME: &'static str = "Steve"; ``` +The type of a `static` value must be `Sync` unless the `static` value is +mutable. + [lifetimes]: lifetimes.html ## Mutability @@ -64,8 +67,6 @@ unsafe { [unsafe]: unsafe.html -Furthermore, any type stored in a `static` must be `Sync`. - # Initializing Both `const` and `static` have requirements for giving them a value. They must