mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
Rollup merge of #33565 - Amanieu:once_doc, r=GuillaumeGomez
Fix typo in std::sync::Once documentation
This commit is contained in:
commit
0238e29652
@ -218,7 +218,6 @@ impl Once {
|
|||||||
/// The closure `f` is yielded a structure which can be used to query the
|
/// The closure `f` is yielded a structure which can be used to query the
|
||||||
/// state of this `Once` (whether initialization has previously panicked or
|
/// state of this `Once` (whether initialization has previously panicked or
|
||||||
/// not).
|
/// not).
|
||||||
/// poisoned or not.
|
|
||||||
#[unstable(feature = "once_poison", issue = "31688")]
|
#[unstable(feature = "once_poison", issue = "31688")]
|
||||||
pub fn call_once_force<F>(&'static self, f: F) where F: FnOnce(&OnceState) {
|
pub fn call_once_force<F>(&'static self, f: F) where F: FnOnce(&OnceState) {
|
||||||
// same as above, just with a different parameter to `call_inner`.
|
// same as above, just with a different parameter to `call_inner`.
|
||||||
|
Loading…
Reference in New Issue
Block a user