Skip to content

Commit

Permalink
Rollup merge of rust-lang#132715 - tabokie:fix-lazy-lock-doc, r=Norat…
Browse files Browse the repository at this point in the history
…rieb

fix `LazyLock::get` and `LazyLock::get_mut` document
  • Loading branch information
joboet authored Nov 7, 2024
2 parents 6a77b21 + df9f5db commit a2eaef7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 a2eaef7

Please sign in to comment.