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.
1 parent 7e552b4 commit ae25c39Copy full SHA for ae25c39
library/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