rust-lang / rust-lang/reference

Poor wording on enum page

Open
#1,473 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Language Cleanup
Dominant language
Rust
Stars
1.6k
Forks
607
PR merge metrics
PR metrics pending

Description

Enumerations
"An enum where no constructors contain fields are called a field-less enum."

  1. grammar: are called may be changed to is called.
  2. possibly misleading:
    "where no constructors" . The plural 'constructors' suggests that more than one constructor is allowed.
    My idea:
    If an enum constructor contains no fields, the enum is called a field-less enum.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the quoted wording in the Enumerations section of the Rust Reference and read the surrounding explanation. Update the grammar and clarify the singular constructor wording as proposed, then verify the rendered documentation shows the intended sentence.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.