aboutsummaryrefslogtreecommitdiff
path: root/option
diff options
context:
space:
mode:
Diffstat (limited to 'option')
-rw-r--r--option/option.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/option/option.go b/option/option.go
index 0f19bb5..e8d7fb4 100644
--- a/option/option.go
+++ b/option/option.go
@@ -124,6 +124,7 @@ import (
// Option is a type that contains either one or no instances of T.
type Option[T any] struct {
+ // NOTE: `None()` must yield the zero value of this type.
value T
isSome bool
}