diff --git a/envconf.go b/envconf.go index 3f44bde..f50fa54 100644 --- a/envconf.go +++ b/envconf.go @@ -148,7 +148,7 @@ func (c *Config) help() { if v.dtype != TypeNone { if v.hasdef { format := fmt.Sprintf("Variable %%-%ds| Type %%-%ds| Default %%s\n", max[0]+5, max[1]+3) - fmt.Printf(format, strings.Sprintf(`"%s"`, k), v.dtype, strings.Sprintf(`"%s"`, v.defval)) + fmt.Printf(format, fmt.Sprintf(`"%s"`, k), v.dtype, fmt.Sprintf(`"%s"`, v.defval)) } } } @@ -159,7 +159,7 @@ func (c *Config) help() { if v.dtype != TypeNone { if !v.hasdef { format := fmt.Sprintf("Variable %%-%ds| Type %%-%ds| Required\n", max[0]+5, max[1]+3) - fmt.Printf(format, strings.Sprintf(`"%s"`, k), v.dtype) + fmt.Printf(format, fmt.Sprintf(`"%s"`, k), v.dtype) } } }