We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 80d5991 + 9d999b4 commit c4479a6Copy full SHA for c4479a6
std/src/sync/once_lock.rs
@@ -279,7 +279,7 @@ impl<T> OnceLock<T> {
279
///
280
/// Many threads may call `get_or_init` concurrently with different
281
/// initializing functions, but it is guaranteed that only one function
282
- /// will be executed.
+ /// will be executed if the function doesn't panic.
283
284
/// # Panics
285
0 commit comments