Rollup merge of #132715 - tabokie:fix-lazy-lock-doc, r=Noratrieb
fix `LazyLock::get` and `LazyLock::get_mut` document
This commit is contained in:
commit
0a0cadfe8a
@ -226,7 +226,7 @@ pub fn force(this: &LazyLock<T, F>) -> &T {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl<T, F> 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
|
/// # Examples
|
||||||
///
|
///
|
||||||
@ -255,7 +255,7 @@ pub fn get_mut(this: &mut LazyLock<T, F>) -> Option<&mut T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 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
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user