Update 'Enum Definitions'

Sasha Koshka 2022-09-19 04:39:56 +00:00
parent 8d13a903d6
commit 6fd1fe0cfa

@ -2,20 +2,20 @@
```
enum ro Weekday:Int
sunday
monday
tuesday
wednesday
thursday
friday
- sunday
- monday
- tuesday
- wednesday
- thursday
- friday
enum ro NamedColor:U32
red 0xFF0000
green 0x00FF00
blue 0x0000FF
- red: <0xFF0000>
- green: <0x00FF00>
- blue: <0x0000FF>
```
Each line under an enum represents a member and is composed of a name, and an optional initialization value.
Each line under an enum represents a member and is composed of a name, and an optional value.
Enum members are accessed similarly to object members: