m-ou-se / rust-atomics-and-locks

Code examples, data structures, and links from my book, Rust Atomics and Locks.
Other
1.33k stars 120 forks source link

Simple typo in Memory Ordering, Example: Lazy Initialization with Indirection #39

Closed tpdickson closed 1 year ago

tpdickson commented 1 year ago

Type of error

Typo

Location of the error

https://marabos.nl/atomics/memory-ordering.html#example-lazy-initialization-with-indirection

Description of the error

In the following paragraph:

For this example, let’s say we want to maintain the non-blocking behavior, so that threads never wait for another thread, but instead race and take the value from the first thread to complete initialization. This means we still need to be able to go from "uninitalized" to "fully initialized" in a single atomic operation.

The bold word "uninitalized" should be "uninitialized".

m-ou-se commented 1 year ago

Thanks! Fixed!