Skip to content

Commit

Permalink
Merge pull request #39 from vjik/patch-1
Browse files Browse the repository at this point in the history
Fix #38: replace CamelCase to PascalCase in Enum case declarations
  • Loading branch information
KorvinSzanto authored Aug 11, 2022
2 parents 89fbefa + ee2196e commit aaf443f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ instead of `protected`, as enums do not support inheritance.
When using a backed enum, there MUST NOT be a space between the enum name and colon, and there MUST be exactly one
space between the colon and the backing type. This is consistent with the style for return types.

Enum case declarations MUST use CamelCase capitalization. Enum case declarations MUST be on their own line.
Enum case declarations MUST use PascalCase capitalization. Enum case declarations MUST be on their own line.

Constants in Enumerations MAY use either PascalCase or UPPER_CASE capitalization. PascalCase is RECOMMENDED,
so that it is consistent with case declarations.
Expand Down

0 comments on commit aaf443f

Please sign in to comment.