summaryrefslogtreecommitdiff
path: root/docs/type_system/union.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/type_system/union.md')
-rw-r--r--docs/type_system/union.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/type_system/union.md b/docs/type_system/union.md
index 7d0c798..81a3ecb 100644
--- a/docs/type_system/union.md
+++ b/docs/type_system/union.md
@@ -28,14 +28,18 @@ Result[ANY] `alias Union[.transient; ANY.value; Error.error]
Option[ANY] `alias Union[.transient; ANY.some; Void.none]
-Next[Any] `alias Union[.transient; ANY.value; Void.done; Error.error]
+Next[Any] `alias Union[.transient; ANY.iter; Void.done]
+
+Next_result[Any] `alias Union[.transient; ANY.value; Error.error; Void.done]
+
+Next_option[Any] `alias Union[.transient; ANY.some; Void.none; Void.done]
```
## Default Operation
When a transient union is assigned the first type specified is moved out.
-If the type is not the first specified a result with an error is returned to the parent function
+If no match is used and if the type is not the first specified a result with an error is returned
```text
z : x / y // Result[Int[...]]