Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/rust-2024/static-mut-references.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ The [atomic types][atomics] provide integers, pointers, and booleans that can be
# use std::sync::atomic::Ordering;
# use std::sync::atomic::AtomicU64;

// Chnage from this:
// Change from this:
// static mut COUNTER: u64 = 0;
// to this:
static COUNTER: AtomicU64 = AtomicU64::new(0);
Expand Down