diff options
| author | Peter Hall <peter.hall@hyperexponential.com> | 2023-10-06 12:20:39 +0100 |
|---|---|---|
| committer | Peter Hall <peter.hall@hyperexponential.com> | 2023-10-06 12:20:39 +0100 |
| commit | c95015c2955e8507f93a1106fa3f7eaafc25308b (patch) | |
| tree | 0ee807b3ee6f61662c269defb7c6bb130b0b3cd7 /library/std/src/sync | |
| parent | d4ba2b4c7c938cf90c03a265cb31356537f608ad (diff) | |
| download | rust-c95015c2955e8507f93a1106fa3f7eaafc25308b.tar.gz rust-c95015c2955e8507f93a1106fa3f7eaafc25308b.zip | |
Minor doc clarification in Once::call_once
Diffstat (limited to 'library/std/src/sync')
| -rw-r--r-- | library/std/src/sync/once.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sync/once.rs b/library/std/src/sync/once.rs index 8c46080e43b..2bb4f3f9e03 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. |
