Minor doc clarification in Once::call_once
This commit is contained in:
parent
d4ba2b4c7c
commit
c95015c295
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ impl Once {
|
||||||
///
|
///
|
||||||
/// # Panics
|
/// # Panics
|
||||||
///
|
///
|
||||||
/// The closure `f` will only be executed once if this is called
|
/// The closure `f` will only be executed once even if this is called
|
||||||
/// concurrently amongst many threads. If that closure panics, however, then
|
/// concurrently amongst many threads. If that closure panics, however, then
|
||||||
/// it will *poison* this [`Once`] instance, causing all future invocations of
|
/// it will *poison* this [`Once`] instance, causing all future invocations of
|
||||||
/// `call_once` to also panic.
|
/// `call_once` to also panic.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue