summaryrefslogtreecommitdiff
path: root/docs/type_system/enum.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/type_system/enum.md')
-rw-r--r--docs/type_system/enum.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/type_system/enum.md b/docs/type_system/enum.md
index 4762389..6b06849 100644
--- a/docs/type_system/enum.md
+++ b/docs/type_system/enum.md
@@ -5,9 +5,12 @@
A symbol associated with a type
```text
-Enum[Collection[.symbol]] // Resoves to Enum[Void; ...]
+Enum[TYPE; Collection[.symbol : Const[Value]]]
+```
-Enum[TYPE; Collection[.symbol]]
+## Definition Example
-Enum[TYPE; Collection[.symbol : VALUE]]
+```text
+E : Enum[I64; .a; .b; .c]
+`log E Enum[I64; .a : 0; .b : 1; .c : 2]
```