aboutsummaryrefslogtreecommitdiff
path: root/misc/misc.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-01-05 16:59:57 +0800
committerRunxi Yu <me@runxiyu.org>2025-01-05 16:59:57 +0800
commitd9899fdff5c80d6c425227ab7c3a6b18a8b35560 (patch)
tree15f910b2383258db4cd79ad12c87277a07402d3b /misc/misc.go
parentmisc: Pointerize_first (diff)
downloadgo-lindenii-common-d9899fdff5c80d6c425227ab7c3a6b18a8b35560.tar.gz
go-lindenii-common-d9899fdff5c80d6c425227ab7c3a6b18a8b35560.tar.zst
go-lindenii-common-d9899fdff5c80d6c425227ab7c3a6b18a8b35560.zip
misc: Fix documentation of Pointerize_first
Diffstat (limited to '')
-rw-r--r--misc/misc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/misc.go b/misc/misc.go
index 95fa405..8eb76b9 100644
--- a/misc/misc.go
+++ b/misc/misc.go
@@ -7,8 +7,8 @@ import (
)
// Pointerize_first returns the address of its first argument, and the value of
-// its second argument. This is useful to for taking the address of a function
-// that also has an error return value.
+// its second argument. This is useful to for taking the address of the
+// non-error return value of a function that also has an error return value.
func Pointerize_first[T1 any, T2 any](x1 T1, x2 T2) (*T1, T2) {
return &x1, x2
}