Skip to content

Commit

Permalink
fix lazylock comment
Browse files Browse the repository at this point in the history
Signed-off-by: Xinye <xinye.tao@metabit-trading.com>
  • Loading branch information
Xinye committed Nov 7, 2024
1 parent c07aa1e commit 557c7f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/sync/lazy_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ impl<T, F: FnOnce() -> T> LazyLock<T, F> {
}

impl<T, F> LazyLock<T, F> {
/// Returns a reference to the value if initialized, or `None` if not.
/// Returns a mutable reference to the value if initialized, or `None` if not.
///
/// # Examples
///
Expand Down Expand Up @@ -255,7 +255,7 @@ impl<T, F> LazyLock<T, F> {
}
}

/// Returns a mutable reference to the value if initialized, or `None` if not.
/// Returns a reference to the value if initialized, or `None` if not.
///
/// # Examples
///
Expand Down

0 comments on commit 557c7f8

Please sign in to comment.