News for hackers. Stuff that matters.
Re:What killed Haskell, could kill Rust, too by steveklabnik on Tuesday September 08, 2020 @04:24PM (#24412851)
Oh, duh, yes. one line added, two lines changed, I've left them at their indent levels and left the variable name the same:

    use std::sync::atomic::{AtomicU32, Ordering};
    
        let res_mutex = AtomicU32::new(0);

                    res_mutex.fetch_add(result, Ordering::SeqCst);

There are no comments on this comment yet.