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 6cac580 commit f6960ccCopy full SHA for f6960cc
library/std/src/sync/lazy_lock.rs
@@ -44,9 +44,9 @@ union Data<T, F> {
44
/// });
45
///
46
/// // The `String` is built, stored in the `LazyLock`, and returned as `&String`.
47
-/// let _ = DEEP_THOUGHT;
+/// let _ = &*DEEP_THOUGHT;
48
/// // The `String` is retrieved from the `LazyLock` and returned as `&String`.
49
50
/// ```
51
52
/// Initialize fields with `LazyLock`.
0 commit comments