Fix documentation typo

This commit is contained in:
Linus Färnstrand 2020-11-22 20:26:36 +01:00
parent 7f35e2d573
commit 427996a286

View File

@ -110,7 +110,7 @@ use crate::thread::{self, Thread};
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
pub struct Once {
// `state_and_queue` is actually an a pointer to a `Waiter` with extra state
// `state_and_queue` is actually a pointer to a `Waiter` with extra state
// bits, so we add the `PhantomData` appropriately.
state_and_queue: AtomicUsize,
_marker: marker::PhantomData<*const Waiter>,