From 05a85ac27f277df63fa32e83c38992c97ffbf29b Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Sat, 5 Feb 2022 19:25:12 +0800 Subject: [PATCH] util: Ptr() returns itself with uintptr --- internal/util/unsafe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/unsafe.go b/internal/util/unsafe.go index c2dd105..87f4ab6 100644 --- a/internal/util/unsafe.go +++ b/internal/util/unsafe.go @@ -8,7 +8,7 @@ import ( // Ptr returns the pointer to these things: // - First element of a slice or array, nil if it has zero length; -// - The pointer itself if the parameter is a pointer, pointing to an scalar value. +// - The pointer itself if the parameter is a pointer/uintptr, pointing to an scalar value. // It panics otherwise. func Ptr(d interface{}) (addr unsafe.Pointer) { if d == nil {