aboutsummaryrefslogtreecommitdiff
path: root/src/go/ast/print.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/go/ast/print.go')
-rw-r--r--src/go/ast/print.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/go/ast/print.go b/src/go/ast/print.go
index d1aad50103a..ccef0577da0 100644
--- a/src/go/ast/print.go
+++ b/src/go/ast/print.go
@@ -17,8 +17,8 @@ import (
// A FieldFilter may be provided to [Fprint] to control the output.
type FieldFilter func(name string, value reflect.Value) bool
-// NotNilFilter returns true for field values that are not nil;
-// it returns false otherwise.
+// NotNilFilter is a [FieldFilter] that returns true for field values
+// that are not nil; it returns false otherwise.
func NotNilFilter(_ string, v reflect.Value) bool {
switch v.Kind() {
case reflect.Chan, reflect.Func, reflect.Interface, reflect.Map, reflect.Pointer, reflect.Slice: