sync: fix broken link of Python asyncio.Event in SetOnce docs (#7485)

This commit is contained in:
tkoyasak 2025-07-27 09:28:24 +09:00 committed by GitHub
parent c8ab78a84f
commit ce41896f8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,7 @@ use std::sync::atomic::Ordering;
/// } /// }
/// ``` /// ```
/// ///
/// [`asyncio.Event`]: https://docs.python.org/3/library/asyncio-event.html /// [`asyncio.Event`]: https://docs.python.org/3/library/asyncio-sync.html#asyncio.Event
pub struct SetOnce<T> { pub struct SetOnce<T> {
value_set: AtomicBool, value_set: AtomicBool,
value: UnsafeCell<MaybeUninit<T>>, value: UnsafeCell<MaybeUninit<T>>,