about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorboyned//Kampfkarren <boynedmaster@gmail.com>2019-10-16 00:06:01 -0700
committerGitHub <noreply@github.com>2019-10-16 00:06:01 -0700
commit247df6e13492d7d9ffed3de49aa59067ef8267f1 (patch)
tree01dbc9030d5a35be7b51f67904db76015cf53995 /src/libstd/sync
parentf54911c6f2971b98ede2d21ab8cabd7daa1110ba (diff)
downloadrust-247df6e13492d7d9ffed3de49aa59067ef8267f1.tar.gz
rust-247df6e13492d7d9ffed3de49aa59067ef8267f1.zip
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