Skip to content

Commit

Permalink
Document Special case for Config
Browse files Browse the repository at this point in the history
  • Loading branch information
pdewilde committed May 16, 2024
1 parent 436ac51 commit 5b937e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion envconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ type Config struct {

// Process decodes the struct using values from environment variables. See
// [ProcessWith] for a more customizable version. If *Config is provided for i,
// [ProcessWith] is called with mus appended.
// [ProcessWith] is called using the *Config with mus appended.
func Process(ctx context.Context, i any, mus ...Mutator) error {
if v, ok := i.(*Config); ok {
v.Mutators = append(v.Mutators, mus...)
Expand Down

0 comments on commit 5b937e0

Please sign in to comment.