Skip to content

Commit

Permalink
std: Improve wording of lazy_lock mod doc
Browse files Browse the repository at this point in the history
  • Loading branch information
behnam-oneschema authored Jan 13, 2024
1 parent 122b2ae commit d0b97ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/std/src/sync/lazy_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ union Data<T, F> {
/// A value which is initialized on the first access.
///
/// This type is a thread-safe [`LazyCell`], and can be used in statics.
/// Therefore, any dereferencing call will block the calling thread if
/// another initialization routine is currently running.
/// Since initialization may be called from multiple threads, any
/// dereferencing call will block the calling thread if another
/// initialization routine is currently running.
///
/// [`LazyCell`]: crate::cell::LazyCell
///
Expand Down

0 comments on commit d0b97ab

Please sign in to comment.