Skip to content

Commit 2b0b1c4

Browse files
committed
fix comment
1 parent bb432b0 commit 2b0b1c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flags.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (f Flags) SetDefault(long string, val any) bool {
6666
}
6767

6868
// BuildFlags creates a slice of Flags from a struct.
69-
// It supports nested structs and will only generate flags if it finds a 'short' and 'long' tag.
69+
// It supports nested structs and will only generate flags if it finds a 'short' or 'long' tag.
7070
func BuildFlags(obj any) Flags {
7171
v := reflect.ValueOf(obj)
7272
if v.Kind() != reflect.Ptr {

0 commit comments

Comments
 (0)