From 6fd1fe0cfaefc72b5ab6544b9f7970f77b9afcc0 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 19 Sep 2022 04:39:56 +0000 Subject: [PATCH] Update 'Enum Definitions' --- ...Type-Definitions.md => Enum-Definitions.md | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) rename Enum-Type-Definitions.md => Enum-Definitions.md (71%) diff --git a/Enum-Type-Definitions.md b/Enum-Definitions.md similarity index 71% rename from Enum-Type-Definitions.md rename to Enum-Definitions.md index b64b492..6b4c869 100644 --- a/Enum-Type-Definitions.md +++ b/Enum-Definitions.md @@ -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: