Rollup merge of #132715 - tabokie:fix-lazy-lock-doc, r=Noratrieb

fix `LazyLock::get` and `LazyLock::get_mut` document
This commit is contained in:
Jonas Böttiger 2024-11-07 13:08:29 +01:00 committed by GitHub
commit 0a0cadfe8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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