Skip to content

Commit

Permalink
Unrolled build for rust-lang#132715
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#132715 - tabokie:fix-lazy-lock-doc, r=Noratrieb

fix `LazyLock::get` and `LazyLock::get_mut` document
  • Loading branch information
rust-timer authored Nov 7, 2024
2 parents fe43131 + 557c7f8 commit 6f413c6
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 6f413c6

Please sign in to comment.