From 363499a5769e6820b11e29f2a75d4954fae352ec Mon Sep 17 00:00:00 2001 From: Vinzent Steinberg Date: Mon, 28 Sep 2020 20:32:31 +0200 Subject: [PATCH] Prefer `const` over `static` --- src/std_misc/threads.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/std_misc/threads.md b/src/std_misc/threads.md index 7a9b2cf22d..2f37d1c4a3 100644 --- a/src/std_misc/threads.md +++ b/src/std_misc/threads.md @@ -6,7 +6,7 @@ function, the argument of this function is a moving closure. ```rust,editable use std::thread; -static NTHREADS: i32 = 10; +const NTHREADS: u32 = 10; // This is the `main` thread fn main() {