We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Once::new
Once
1 parent 7426f5c commit 1c2abdaCopy full SHA for 1c2abda
src/libstd/sync/once.rs
@@ -73,9 +73,10 @@ use thread::{self, Thread};
73
/// A synchronization primitive which can be used to run a one-time global
74
/// initialization. Useful for one-time initialization for FFI or related
75
/// functionality. This type can only be constructed with the [`ONCE_INIT`]
76
-/// value.
+/// value or the equivalent [`Once::new`] constructor.
77
///
78
/// [`ONCE_INIT`]: constant.ONCE_INIT.html
79
+/// [`Once::new`]: struct.Once.html#method.new
80
81
/// # Examples
82
0 commit comments