From df9f5db19d7f3d388b7e54d6643f7441ed098640 Mon Sep 17 00:00:00 2001 From: Xinye Date: Thu, 7 Nov 2024 10:51:00 +0800 Subject: [PATCH] fix lazylock comment Signed-off-by: Xinye --- std/src/sync/lazy_lock.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/std/src/sync/lazy_lock.rs b/std/src/sync/lazy_lock.rs index b05615035d7b1..40510f5613450 100644 --- a/std/src/sync/lazy_lock.rs +++ b/std/src/sync/lazy_lock.rs @@ -226,7 +226,7 @@ impl T> LazyLock { } impl LazyLock { - /// 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 LazyLock { } } - /// 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 ///