Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bc91df6

Browse files
authoredJul 31, 2024··
Unrolled build for rust-lang#128387
Rollup merge of rust-lang#128387 - liigo:patch-14, r=tgross35 More detailed note to deprecate ONCE_INIT
2 parents 0b5eb7b + 918cdcc commit bc91df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎library/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)
Please sign in to comment.