Skip to content

Commit

Permalink
Remove invalid 'pseudo associated values' for enum
Browse files Browse the repository at this point in the history
This way of defining enum values doesn't work, and errors in " Error: No associated values are defined for this enum."
  • Loading branch information
KMikeeU authored and lerno committed Aug 13, 2024
1 parent 867a364 commit be54868
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/content/docs/references/getting-started/primer.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ Name standards are enforced:
const int FOOBAR = 123;
enum Test
{
STATE_A = 0,
STATE_B = 2
STATE_A,
STATE_B
}

#### Variable declaration
Expand Down Expand Up @@ -456,4 +456,4 @@ C.

**For the full list of all new features** see the [feature list](/references/docs/allfeatures).

Finally, the [FAQ](/references/docs/faq) answers many questions you might have as you start out.
Finally, the [FAQ](/references/docs/faq) answers many questions you might have as you start out.

0 comments on commit be54868

Please sign in to comment.