Skip to content

Commit df9f5db

Browse files
author
Xinye
committed
fix lazylock comment
Signed-off-by: Xinye <[email protected]>
1 parent 52c2a45 commit df9f5db

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)