Skip to content

Commit 541be6f

Browse files
authored
Merge pull request #1381 from vks/patch-2
Prefer `const` over `static`
2 parents 19f0a03 + 363499a commit 541be6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/std_misc/threads.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function, the argument of this function is a moving closure.
66
```rust,editable
77
use std::thread;
88
9-
static NTHREADS: i32 = 10;
9+
const NTHREADS: u32 = 10;
1010
1111
// This is the `main` thread
1212
fn main() {

0 commit comments

Comments
 (0)