From: Tobias Bucher Date: Thu, 24 May 2018 12:08:47 +0000 (+0200) Subject: Add `Once::new` as a way of constructing a `Once` X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=1c2abda671ace3935a70b9d4c44bf944e1d34189;p=rust.git Add `Once::new` as a way of constructing a `Once` --- diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs index 6fd8b6a5bba..138993e2271 100644 --- a/src/libstd/sync/once.rs +++ b/src/libstd/sync/once.rs @@ -73,9 +73,10 @@ /// 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 ///