Minor cleanups to custom discriminator code.

Mostly updates to the comments and docs from Pull Request #1537.
This commit is contained in:
Kevin Atkinson
2012-01-16 21:04:02 -07:00
parent e20d906718
commit bdc8e8d222
4 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -103,9 +103,9 @@ equivalent to a C enum:
This will define `north`, `east`, `south`, and `west` as constants,
all of which have type `direction`.
When the enum is is C like, that is none of the variants have
parameters, it is possible to explicit set the discriminator values to
an integer value:
When the enum is C like, that is none of the variants have parameters,
it is possible to explicitly set the discriminator values to an integer
value:
enum color {
red = 0xff0000;