Skip to content

OnceCell docs: empty/full terminology v.s. (un)initialized #85716

Closed
@SimonSapin

Description

@SimonSapin

Documentation at:

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

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Libs-SmallLibs issues that are considered "small" or self-containedT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions