Skip to content

Commit d0b97ab

Browse files
std: Improve wording of lazy_lock mod doc
1 parent 122b2ae commit d0b97ab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/std/src/sync/lazy_lock.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ union Data<T, F> {
2020
/// A value which is initialized on the first access.
2121
///
2222
/// This type is a thread-safe [`LazyCell`], and can be used in statics.
23-
/// Therefore, any dereferencing call will block the calling thread if
24-
/// another initialization routine is currently running.
23+
/// Since initialization may be called from multiple threads, any
24+
/// dereferencing call will block the calling thread if another
25+
/// initialization routine is currently running.
2526
///
2627
/// [`LazyCell`]: crate::cell::LazyCell
2728
///

0 commit comments

Comments
 (0)