Closed
Description
@scottmcm: I think it should at least say somewhere what that default is. Having it come from a derive(Default) on a c_int feels indirect to me as well, so perhaps it would make sense to define it manually in terms of ExitCode::SUCCESS instead, say -- that would also allow putting a doc-comment on the impl.
We should document that Default
for ExitStatus
is "process reported successful termination", ie the result of ExitCode::success().into()
, and, implement it that way.
Originally posted by @ijackson in #106425 (comment)
Metadata
Metadata
Assignees
Labels
Area: Documentation for any part of the project, including the compiler, standard library, and toolsCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Status: Blocked on something else such as an RFC or other implementation work.Relevant to the library API team, which will review and decide on the PR/issue.