Closed
Description
Documentation at:
- https://doc.rust-lang.org/nightly/std/lazy/struct.OnceCell.html
- https://doc.rust-lang.org/nightly/std/lazy/struct.SyncOnceCell.html
Appears to use "empty" and "uninitialized" interchangeably to describe the state of a given cell, and similarly "full" and "initialized". I think it’d be better to pick one set of terminology and stick to it consistently. Using empty/full might be better because "uninitialized" terminology is already used for std::mem::MaybeUninit
, and manipulating an empty cell does not have the memory-safety risks of reading bytes from MaybeUninit::uninit()
.
Metadata
Metadata
Assignees
Labels
Area: Documentation for any part of the project, including the compiler, standard library, and toolsCategory: This is a bug.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Libs issues that are considered "small" or self-containedRelevant to the library API team, which will review and decide on the PR/issue.