Skip to content

Commit

Permalink
More detailed note to deprecate ONCE_INIT
Browse files Browse the repository at this point in the history
  • Loading branch information
liigo committed Jul 30, 2024
1 parent e69c19e commit 918cdcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sync/once.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 918cdcc

Please sign in to comment.