Skip to content

Commit

Permalink
Rollup merge of #116484 - peterjoel:once-doc-clarify, r=cuviper
Browse files Browse the repository at this point in the history
Minor doc clarification in Once::call_once
  • Loading branch information
matthiaskrgr authored Oct 6, 2023
2 parents f8dae0c + c95015c commit 7f0cf8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sync/once.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7f0cf8c

Please sign in to comment.