We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ed5bb8 commit 4d8ec9fCopy full SHA for 4d8ec9f
library/std/src/sync/lazy_lock.rs
@@ -35,7 +35,7 @@ union Data<T, F> {
35
/// // n.b. static items do not call [`Drop`] on program termination, so this won't be deallocated.
36
/// // this is fine, as the OS can deallocate the terminated program faster than we can free memory
37
/// // but tools like valgrind might report "memory leaks" as it isn't obvious this is intentional.
38
-/// static DEEP_THOUGHT: LazyLock<String, fn() -> String> = LazyLock::new(|| {
+/// static DEEP_THOUGHT: LazyLock<String> = LazyLock::new(|| {
39
/// # mod another_crate {
40
/// # pub fn great_question() -> String { "42".to_string() }
41
/// # }
0 commit comments