Skip to content

Commit 72abab1

Browse files
authored
Merge pull request #447 from thaJeztah/fix_deprecation_comment
fix deprecation comment for (FlagSet.)ParseErrorsWhitelist
2 parents 1043857 + 45a4873 commit 72abab1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎flag.go‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,9 @@ type ParseErrorsAllowlist struct {
143143
UnknownFlags bool
144144
}
145145

146-
// DEPRECATED: please use ParseErrorsAllowlist instead
147-
// This type will be removed in a future release
146+
// ParseErrorsWhitelist defines the parsing errors that can be ignored.
147+
//
148+
// Deprecated: use [ParseErrorsAllowlist] instead. This type will be removed in a future release.
148149
type ParseErrorsWhitelist = ParseErrorsAllowlist
149150

150151
// NormalizedName is a flag name that has been normalized according to rules
@@ -165,8 +166,9 @@ type FlagSet struct {
165166
// ParseErrorsAllowlist is used to configure an allowlist of errors
166167
ParseErrorsAllowlist ParseErrorsAllowlist
167168

168-
// DEPRECATED: please use ParseErrorsAllowlist instead
169-
// This field will be removed in a future release
169+
// ParseErrorsAllowlist is used to configure an allowlist of errors.
170+
//
171+
// Deprecated: use [FlagSet.ParseErrorsAllowlist] instead. This field will be removed in a future release.
170172
ParseErrorsWhitelist ParseErrorsAllowlist
171173

172174
name string

0 commit comments

Comments
 (0)