summaryrefslogtreecommitdiff
path: root/option
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-06-17 23:23:52 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-06-17 23:23:52 +0200
commitb95ec7449ebec844221f80ecbf7976f3af878eee (patch)
treed8f612b04db980fb878efd0aabb3fe2ba6d3113f /option
parentc6b1e6cd164067f623ecd0b1208a73214ea1a0d6 (diff)
downloadgo-gg-b95ec7449ebec844221f80ecbf7976f3af878eee.tar.gz
raise minimum Go version to 1.26
Diffstat (limited to 'option')
-rw-r--r--option/option_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/option/option_test.go b/option/option_test.go
index a5eb3ff..646108a 100644
--- a/option/option_test.go
+++ b/option/option_test.go
@@ -22,7 +22,7 @@ func TestZeroValue(t *testing.T) {
func TestAsPointer(t *testing.T) {
AssertEqual(t, None[int]().AsPointer(), nil)
- AssertEqual(t, Some(42).AsPointer(), PointerTo(42))
+ AssertEqual(t, Some(42).AsPointer(), new(42))
}
func TestAsSlice(t *testing.T) {