Skip to content

Commit 8b63c54

Browse files
committed
Update
1 parent 9a0b7bd commit 8b63c54

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/enums.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ The variant value as declared by the `const` is determined as follows:
120120

121121
1. Let r = zero
122122
2. If the initializer does not contain a numeric literal
123-
1. If there is no previous variant, return zero.
123+
1. If there is no previous variant, return 0.
124124
2. Let k = previous variant's value
125125
3. r = k + 1
126126
3. Else
@@ -133,12 +133,12 @@ The variant value as declared by the `const` is determined as follows:
133133

134134
1. Let r = zero
135135
2. If the initializer does not contain a numeric literal
136-
1. If there is no previous variant, return one.
136+
1. If there is no previous variant, return 1.
137137
2. Let k = previous variant's value
138138
3. r = k * 2
139139
3. Else
140140
1. r = the value of the numeric literal at the initializer.
141-
2. If r is not one or a multiple of two
141+
2. If r is not one or a power of two
142142
1. Throw a verify error
143143
4. If r is already used by another variant's value
144144
1. Throw a verify error

0 commit comments

Comments
 (0)