pull/737/head
sunface 3 years ago
commit 4036105e29

@ -475,10 +475,10 @@ fn main() {
```rust ```rust
use std::thread; use std::thread;
use std::sync::{Once, ONCE_INIT}; use std::sync::Once;
static mut VAL: usize = 0; static mut VAL: usize = 0;
static INIT: Once = ONCE_INIT; static INIT: Once = Once::new();
fn main() { fn main() {
let handle1 = thread::spawn(move || { let handle1 = thread::spawn(move || {

Loading…
Cancel
Save