Skip to content

Commit a2eaef7

Browse files
authored
Rollup merge of rust-lang#132715 - tabokie:fix-lazy-lock-doc, r=Noratrieb
fix `LazyLock::get` and `LazyLock::get_mut` document
2 parents 6a77b21 + df9f5db commit a2eaef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

std/src/sync/lazy_lock.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ impl<T, F: FnOnce() -> T> LazyLock<T, F> {
226226
}
227227

228228
impl<T, F> LazyLock<T, F> {
229-
/// Returns a reference to the value if initialized, or `None` if not.
229+
/// Returns a mutable reference to the value if initialized, or `None` if not.
230230
///
231231
/// # Examples
232232
///
@@ -255,7 +255,7 @@ impl<T, F> LazyLock<T, F> {
255255
}
256256
}
257257

258-
/// Returns a mutable reference to the value if initialized, or `None` if not.
258+
/// Returns a reference to the value if initialized, or `None` if not.
259259
///
260260
/// # Examples
261261
///

0 commit comments

Comments
 (0)