From d53f04ea869fb52c5d5d68a2032534bbaa27d120 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Thu, 3 Jul 2025 23:37:58 +0200 Subject: option: refer to package options in package doc --- option/option.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'option/option.go') diff --git a/option/option.go b/option/option.go index 5efae9c..a96e87d 100644 --- a/option/option.go +++ b/option/option.go @@ -93,8 +93,7 @@ // but this restriction degrades their usefulness beyond reasonable limits. // - Go does not allow to introduce additional type restrictions in individual methods. // This makes methods like unzip() or cloned() unrepresentable in Go. -// We might make these available as free-standing functions in the future, but if we do, -// they will definitely not be in this package (see "Clean import guarantee" above). +// We have made some of these available as free-standing functions, in "package options" that sits next to this package. // - Mixing of struct receiver methods and pointer receiver methods on the same type is discouraged to avoid unintentional copies and data races. // Since most of the useful methods require only a struct receiver, we forego those that require a pointer receiver, like get_or_insert() or take(). // The only exception to this is the methods implementing Unmarshaler interfaces, where concurrency bugs are very unlikely. -- cgit v1.2.3