From 81565c6e6a625881d0634582283b1aa98c15b368 Mon Sep 17 00:00:00 2001 From: ariel Date: Fri, 25 Apr 2025 12:18:07 -0700 Subject: [PATCH] types.optional revision (#120) --- docs/types-library-optional.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/types-library-optional.md b/docs/types-library-optional.md index 1a1bf30..7221f17 100644 --- a/docs/types-library-optional.md +++ b/docs/types-library-optional.md @@ -16,4 +16,4 @@ end ## Design -As a solution, a new method to the `types` library should be added called `optional`. This new method will act the same as `types.unionof(type, types.singleton(nil))`. +As a solution, a new method to the `types` library should be added called `optional`. When called on a union, this will add `nil` to the components. Otherwise, this new method will act the same as `types.unionof(type, types.singleton(nil))`.