mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03:00
2d0ebca979
This example is spiritually an example of LazyLock, as it computes a variable at runtime but accepts no inputs into that process. It is also slightly simpler and thus easier to understand. Change it to an even-more concise version and move it to LazyLock. The example now editorializes slightly more. This may be unnecessary, but it can be educational for the reader.