Skip to content

Commit

Permalink
Fix comment typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Feb 15, 2024
1 parent b948f0a commit b2b31ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ func (e *Env) SetContext(ctx context.Context) *Env {
// the flag -A. With merging enabled the argument list succeeds, because the
// parser "looks ahead", treating it as if the caller had written:
//
// one -A 1 -- two -B 2
// one -A 1 two -B 2
//
// Setting the MergeFlags option also applies to all the descendants of e
// unless the command's Init callback changes the setting. Note that if a
// subcommand defines a flag with the same name as its ancestor, the ancstor
// subcommand defines a flag with the same name as its ancestor, the ancestor
// will shadow the flag for the descendant.
func (e *Env) MergeFlags(merge bool) *Env { e.merge = merge; return e }

Expand Down

0 comments on commit b2b31ee

Please sign in to comment.