diff options
| author | Aeon <165953379+AeonSolstice@users.noreply.github.com> | 2025-01-15 16:08:22 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-15 16:08:22 -0500 |
| commit | c4a5e12567a4f5b540141c31c87f479bb3e73e63 (patch) | |
| tree | c1dcfd4d7745e68f14b7128364caf3836a6b0e81 | |
| parent | 27f336106db859435f6edcf507e38f90b1e2af43 (diff) | |
| download | rust-c4a5e12567a4f5b540141c31c87f479bb3e73e63.tar.gz rust-c4a5e12567a4f5b540141c31c87f479bb3e73e63.zip | |
Clarify note in `std::sync::LazyLock` example
| -rw-r--r-- | library/std/src/sync/lazy_lock.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sync/lazy_lock.rs b/library/std/src/sync/lazy_lock.rs index 1e4f9b79e0f..98c83d8d326 100644 --- a/library/std/src/sync/lazy_lock.rs +++ b/library/std/src/sync/lazy_lock.rs @@ -31,7 +31,7 @@ union Data<T, F> { /// ``` /// use std::sync::LazyLock; /// -/// // n.b. static items do not call [`Drop`] on program termination, so this won't be deallocated. +/// // Note: static items do not call [`Drop`] on program termination, so this won't be deallocated. /// // this is fine, as the OS can deallocate the terminated program faster than we can free memory /// // but tools like valgrind might report "memory leaks" as it isn't obvious this is intentional. /// static DEEP_THOUGHT: LazyLock<String> = LazyLock::new(|| { |
