From 35a1d954c8765c26125f2e2941f494ab91af5ad8 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Sat, 4 Jan 2025 16:19:37 +0100 Subject: note about zero value --- option/option.go | 1 + 1 file changed, 1 insertion(+) (limited to 'option/option.go') 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 } -- cgit v1.2.3