about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-17 13:46:09 +0200
committerGitHub <noreply@github.com>2019-10-17 13:46:09 +0200
commit55f2ac2483531977f4b1b9f79753b0f9c82bbc16 (patch)
treed831fe8fe8beb9ca859dfdf1509d8a8a2dc7e5c0 /src/libstd/sync
parent60ac3335fd48b91ab2262de784d408cfa33f00c1 (diff)
parent247df6e13492d7d9ffed3de49aa59067ef8267f1 (diff)
downloadrust-55f2ac2483531977f4b1b9f79753b0f9c82bbc16.tar.gz
rust-55f2ac2483531977f4b1b9f79753b0f9c82bbc16.zip
Rollup merge of #65461 - Kampfkarren:patch-1, r=Centril
Don't recommend ONCE_INIT in std::sync::Once

ONCE_INIT is deprecated, and so suggesting it as not only being on par with, but before `Once::new` is a bad idea.
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/once.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs
index e529b8c4227..e28fbca7fa1 100644
--- a/src/libstd/sync/once.rs
+++ b/src/libstd/sync/once.rs
@@ -60,10 +60,9 @@ use crate::thread::{self, Thread};
 
 /// A synchronization primitive which can be used to run a one-time global
 /// initialization. Useful for one-time initialization for FFI or related
-/// functionality. This type can only be constructed with the [`ONCE_INIT`]
-/// value or the equivalent [`Once::new`] constructor.
+/// functionality. This type can only be constructed with the [`Once::new`]
+/// constructor.
 ///
-/// [`ONCE_INIT`]: constant.ONCE_INIT.html
 /// [`Once::new`]: struct.Once.html#method.new
 ///
 /// # Examples