fix lazylock comment

Signed-off-by: Xinye <xinye.tao@metabit-trading.com>
This commit is contained in:
Xinye 2024-11-07 10:51:00 +08:00
parent c07aa1e171
commit 557c7f8cdd

View File

@ -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
///
@ -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
///