diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2025-01-04 16:19:37 +0100 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2025-01-04 16:19:37 +0100 |
| commit | 35a1d954c8765c26125f2e2941f494ab91af5ad8 (patch) | |
| tree | e3cc63fe68767f0276941e11c5e6a6ef2c9cedd6 /option | |
| parent | 43b1e0c39171e207ff37a1e0d4844483bd6f3775 (diff) | |
| download | go-gg-35a1d954c8765c26125f2e2941f494ab91af5ad8.tar.gz | |
note about zero value
Diffstat (limited to 'option')
| -rw-r--r-- | option/option.go | 1 |
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 } |
