about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-06 21:17:51 +0200
committerGitHub <noreply@github.com>2023-10-06 21:17:51 +0200
commit7f0cf8c0e41dd5df27edfa57d42399dbab634320 (patch)
tree09a483afc9ab9e895fc0d3f361362ea1296a362d
parentf8dae0c20a03a584c12146c89253e2c2ef93d4b2 (diff)
parentc95015c2955e8507f93a1106fa3f7eaafc25308b (diff)
downloadrust-7f0cf8c0e41dd5df27edfa57d42399dbab634320.tar.gz
rust-7f0cf8c0e41dd5df27edfa57d42399dbab634320.zip
Rollup merge of #116484 - peterjoel:once-doc-clarify, r=cuviper
Minor doc clarification in Once::call_once
-rw-r--r--library/std/src/sync/once.rs2
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.