mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 08:53:35 +00:00
fix lazylock comment
Signed-off-by: Xinye <xinye.tao@metabit-trading.com>
This commit is contained in:
parent
c07aa1e171
commit
557c7f8cdd
@ -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