diff options
| author | Jonas Böttiger <jonasboettiger@icloud.com> | 2024-11-07 13:08:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-07 13:08:29 +0100 |
| commit | 0a0cadfe8affde9e28a1a0ab8d5701fe84b9aa85 (patch) | |
| tree | fb2e0510326a2c18b068f0c686a2ec6a221f02a2 /library/std/src | |
| parent | 59582fb21a667614de8e9338a1fc2dd8040b2daf (diff) | |
| parent | 557c7f8cdd37192c4451a866572db8c1ccc6662b (diff) | |
| download | rust-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.rs | 4 |
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 /// |
