1
Fork 0

More detailed note to deprecate ONCE_INIT

This commit is contained in:
Liigo Zhuang 2024-07-30 19:36:28 +08:00 committed by GitHub
parent e69c19ea0b
commit 918cdcc9c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,7 @@ pub(crate) enum ExclusiveState {
#[stable(feature = "rust1", since = "1.0.0")]
#[deprecated(
since = "1.38.0",
note = "the `new` function is now preferred",
note = "the `Once::new()` function is now preferred",
suggestion = "Once::new()"
)]
pub const ONCE_INIT: Once = Once::new();