Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ptr/ptr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down