serde-rs / serde-rs/serde-rs.github.io

Show negative enum values in the enum-number example

Open
#69 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

content
Dominant language
HTML
Stars
23
Forks
109
PR merge metrics
No merged PRs in 30d

Description

As reported in https://github.com/serde-rs/serde/issues/1162, the Serialize enum as number example does not work so well if there is a mix of positive and negative enum values. Let's show the more complicated case to be maximally general.

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

Open the linked Serialize enum as number documentation page and locate its enum-number example. Update the example to show a mix of positive and negative enum values, then verify that the documentation example still builds or renders correctly.

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
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.