Skip to content

Commit

Permalink
Rollup merge of rust-lang#128387 - liigo:patch-14, r=tgross35
Browse files Browse the repository at this point in the history
More detailed note to deprecate ONCE_INIT
  • Loading branch information
matthiaskrgr authored Jul 31, 2024
2 parents ddff2b6 + 556dc60 commit e3a4ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 e3a4ed3

Please sign in to comment.