Abirdcfly / dupword

A linter that checks for duplicate words in the source code (usually miswritten)
MIT License
13 stars 5 forks source link

`\n \t` format error in the repaired content #15

Open Abirdcfly opened 1 year ago

Abirdcfly commented 1 year ago
diff --git a/internal/cmd/qgo/qgo.go b/internal/cmd/qgo/qgo.go
index 8e053547..5e46b6a8 100644
--- a/internal/cmd/qgo/qgo.go
+++ b/internal/cmd/qgo/qgo.go
@@ -36,14 +36,7 @@ import (
        "golang.org/x/tools/go/packages"
 )

-const help = `
-Commands:
-extract                Extract one-line signature of exported types of
-                       the given package.
-
-                       Functions that have have more than one return
-                       argument or unknown types are skipped.
-`
+const help = "\nCommands:\nextract\t\tExtract one-line signature of exported types of\n\t\t\tthe given package.\n\n\t\t\tFunctions that have more than one return\n\t\t\targument or unknown types are"

 // Even though all of the code is generated, the documentation is copied as is.
 // So for proper measure, include both the CUE and Go licenses.