Fix build breaking with Go 1.11

strings.ReplaceAll is only supported in Go 1.12 and newer.
pull/542/head
doingodswork 2020-07-04 18:42:52 +02:00
parent a092d0d40a
commit 081a44323d
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ func usage() {
// for both 4- and 8-space tab stops.
s += "\n \t"
}
s += strings.ReplaceAll(usage, "\n", "\n \t")
s += strings.Replace(usage, "\n", "\n \t", -1)
if !isZeroValue(f, f.DefValue) {
if _, ok := f.Value.(*stringValue); ok {