diff options
Diffstat (limited to 'src/go/ast/print.go')
-rw-r--r-- | src/go/ast/print.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/go/ast/print.go b/src/go/ast/print.go index d1aad50103..ccef0577da 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: |