Skip to content

Commit

Permalink
Unrolled build for rust-lang#128387
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#128387 - liigo:patch-14, r=tgross35

More detailed note to deprecate ONCE_INIT
  • Loading branch information
rust-timer committed Jul 31, 2024
2 parents 0b5eb7b + 918cdcc commit bc91df6
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 bc91df6

Please sign in to comment.