We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
std::sync::LazyLock
1 parent 27f3361 commit c4a5e12Copy full SHA for c4a5e12
library/std/src/sync/lazy_lock.rs
@@ -31,7 +31,7 @@ union Data<T, F> {
31
/// ```
32
/// use std::sync::LazyLock;
33
///
34
-/// // 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.
35
/// // this is fine, as the OS can deallocate the terminated program faster than we can free memory
36
/// // but tools like valgrind might report "memory leaks" as it isn't obvious this is intentional.
37
/// static DEEP_THOUGHT: LazyLock<String> = LazyLock::new(|| {
0 commit comments