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 authored Jul 30, 2024
1 parent 440ec83 commit 556dc60
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 556dc60

Please sign in to comment.