Skip to content

Commit

Permalink
punctuation lints
Browse files Browse the repository at this point in the history
  • Loading branch information
pyqlsa committed Jun 11, 2022
1 parent 18944cd commit 2a363cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mapper.go
Expand Up @@ -445,7 +445,7 @@ func mapDecoder(r *Registry) MapperFunc {
t := ctx.Scan.Pop()
// If decoding a flag, we need an argument.
if t.IsEOL() {
return fmt.Errorf("missing argument: expecting <key>=<value>%c...", mapsep)
return fmt.Errorf("missing argument: expecting \"<key>=<value>%c...\"", mapsep)
}
switch v := t.Value.(type) {
case string:
Expand Down Expand Up @@ -520,7 +520,7 @@ func sliceDecoder(r *Registry) MapperFunc {
t := ctx.Scan.Pop()
// If decoding a flag, we need an argument.
if t.IsEOL() {
return fmt.Errorf("missing argument: expecting <arg>%c...", sep)
return fmt.Errorf("missing argument: expecting \"<arg>%c...\"", sep)
}
switch v := t.Value.(type) {
case string:
Expand Down

0 comments on commit 2a363cc

Please sign in to comment.