Skip to content

Commit e3a4ed3

Browse files
authored
Rollup merge of rust-lang#128387 - liigo:patch-14, r=tgross35
More detailed note to deprecate ONCE_INIT
2 parents ddff2b6 + 556dc60 commit e3a4ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/sync/once.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub(crate) enum ExclusiveState {
7070
#[stable(feature = "rust1", since = "1.0.0")]
7171
#[deprecated(
7272
since = "1.38.0",
73-
note = "the `new` function is now preferred",
73+
note = "the `Once::new()` function is now preferred",
7474
suggestion = "Once::new()"
7575
)]
7676
pub const ONCE_INIT: Once = Once::new();

0 commit comments

Comments
 (0)