We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d726a2 commit b79b687Copy full SHA for b79b687
library/std/src/sync/once_lock.rs
@@ -14,7 +14,10 @@ use crate::sync::Once;
14
/// # Examples
15
///
16
/// Using `OnceCell` to store a function’s previously computed value (a.k.a.
17
-/// ‘lazy static’ or ‘memoizing’):
+/// ‘lazy static’ or ‘memoizing’). Since [`drop`] is not called for static
18
+/// items at the end of the program (see [the
19
+/// reference](https://doc.rust-lang.org/reference/destructors.html), objects
20
+/// stored using this pattern will not have their destructors called.
21
22
/// ```
23
/// use std::collections::HashMap;
0 commit comments