Minor doc clarification in Once::call_once

This commit is contained in:
Peter Hall 2023-10-06 12:20:39 +01:00
parent d4ba2b4c7c
commit c95015c295

View file

@ -125,7 +125,7 @@ impl Once {
///
/// # 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
/// it will *poison* this [`Once`] instance, causing all future invocations of
/// `call_once` to also panic.