From 40949e5cfecf62e0ef508d93b20e097d79716e17 Mon Sep 17 00:00:00 2001 From: Aakarshit Uppal <26065812+aksh1618@users.noreply.github.com> Date: Wed, 11 Feb 2026 03:24:50 +0000 Subject: [PATCH] Fix typo in ptr.Deref doc comment --- ptr/ptr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ptr/ptr.go b/ptr/ptr.go index 659ed3b9..ea847fd3 100644 --- a/ptr/ptr.go +++ b/ptr/ptr.go @@ -51,7 +51,7 @@ func To[T any](v T) *T { return &v } -// Deref dereferences ptr and returns the value it points to if no nil, or else +// Deref dereferences ptr and returns the value it points to if not nil, or else // returns def. func Deref[T any](ptr *T, def T) T { if ptr != nil {