about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorJonas Böttiger <jonasboettiger@icloud.com>2024-11-07 13:08:29 +0100
committerGitHub <noreply@github.com>2024-11-07 13:08:29 +0100
commit0a0cadfe8affde9e28a1a0ab8d5701fe84b9aa85 (patch)
treefb2e0510326a2c18b068f0c686a2ec6a221f02a2 /library/std/src
parent59582fb21a667614de8e9338a1fc2dd8040b2daf (diff)
parent557c7f8cdd37192c4451a866572db8c1ccc6662b (diff)
downloadrust-0a0cadfe8affde9e28a1a0ab8d5701fe84b9aa85.tar.gz
rust-0a0cadfe8affde9e28a1a0ab8d5701fe84b9aa85.zip
Rollup merge of #132715 - tabokie:fix-lazy-lock-doc, r=Noratrieb
fix `LazyLock::get` and `LazyLock::get_mut` document
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/sync/lazy_lock.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sync/lazy_lock.rs b/library/std/src/sync/lazy_lock.rs
index b05615035d7..40510f56134 100644
--- a/library/std/src/sync/lazy_lock.rs
+++ b/library/std/src/sync/lazy_lock.rs
@@ -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
     ///