Skip to content

Commit

Permalink
Minor doc clarification in Once::call_once
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjoel committed Oct 6, 2023
1 parent d4ba2b4 commit c95015c
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 c95015c

Please sign in to comment.