diff options
| author | boyned//Kampfkarren <boynedmaster@gmail.com> | 2019-10-16 00:06:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-16 00:06:01 -0700 |
| commit | 247df6e13492d7d9ffed3de49aa59067ef8267f1 (patch) | |
| tree | 01dbc9030d5a35be7b51f67904db76015cf53995 /src/libstd/sync | |
| parent | f54911c6f2971b98ede2d21ab8cabd7daa1110ba (diff) | |
| download | rust-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.rs | 5 |
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 |
