This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit c898d12
authored
Unrolled build for rust-lang#140783
Rollup merge of rust-lang#140783 - veluca93:oncelock-docs, r=jhpratt
Update documentation of OnceLock::get_or_init.
Explicitly point out that if the function panics the init function might be called multiple times.1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
0 commit comments