Rollup merge of #116484 - peterjoel:once-doc-clarify, r=cuviper

Minor doc clarification in Once::call_once
This commit is contained in:
Matthias Krüger 2023-10-06 21:17:51 +02:00 committed by GitHub
commit 7f0cf8c0e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.