From c95015c2955e8507f93a1106fa3f7eaafc25308b Mon Sep 17 00:00:00 2001 From: Peter Hall Date: Fri, 6 Oct 2023 12:20:39 +0100 Subject: [PATCH] Minor doc clarification in Once::call_once --- library/std/src/sync/once.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/sync/once.rs b/library/std/src/sync/once.rs index 8c46080e43b38..2bb4f3f9e0383 100644 --- a/library/std/src/sync/once.rs +++ b/library/std/src/sync/once.rs @@ -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.