]> git.lizzy.rs Git - rust.git/commitdiff
Add `Once::new` as a way of constructing a `Once`
authorTobias Bucher <tobiasbucher5991@gmail.com>
Thu, 24 May 2018 12:08:47 +0000 (14:08 +0200)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Thu, 24 May 2018 12:08:47 +0000 (14:08 +0200)
src/libstd/sync/once.rs

index 6fd8b6a5bbae43c2f9b3db50638f8f662b494832..138993e2271c9147173df982e0c59a12f77bfec9 100644 (file)
 /// 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.
+/// value or the equivalent [`Once::new`] constructor.
 ///
 /// [`ONCE_INIT`]: constant.ONCE_INIT.html
+/// [`Once::new`]: struct.Once.html#method.new
 ///
 /// # Examples
 ///