mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
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 @@ 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
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user