Skip to content

Commit 7f0cf8c

Browse files
authored
Rollup merge of #116484 - peterjoel:once-doc-clarify, r=cuviper
Minor doc clarification in Once::call_once
2 parents f8dae0c + c95015c commit 7f0cf8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sync/once.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl Once {
125125
///
126126
/// # Panics
127127
///
128-
/// The closure `f` will only be executed once if this is called
128+
/// The closure `f` will only be executed once even if this is called
129129
/// concurrently amongst many threads. If that closure panics, however, then
130130
/// it will *poison* this [`Once`] instance, causing all future invocations of
131131
/// `call_once` to also panic.

0 commit comments

Comments
 (0)