about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-31 15:36:31 +0200
committerGitHub <noreply@github.com>2024-07-31 15:36:31 +0200
commit22dbf88744649ebd3d1ba951c74739056931f4eb (patch)
tree462be065e4b94a276fcca288d81f6bedf7308aa2
parent336a378fcd873130300f43c1a8daa9149c860158 (diff)
parent918cdcc9c542eea0d7d3d4517dead7ae9a704e3e (diff)
downloadrust-22dbf88744649ebd3d1ba951c74739056931f4eb.tar.gz
rust-22dbf88744649ebd3d1ba951c74739056931f4eb.zip
Rollup merge of #128387 - liigo:patch-14, r=tgross35
More detailed note to deprecate ONCE_INIT
-rw-r--r--library/std/src/sync/once.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sync/once.rs b/library/std/src/sync/once.rs
index 9d969af8c6d..5e0694e8de2 100644
--- a/library/std/src/sync/once.rs
+++ b/library/std/src/sync/once.rs
@@ -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();