Skip to content

Commit

Permalink
fix printf issues spotted by the latest go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdan committed Sep 6, 2024
1 parent 85df7f5 commit 48dd226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (f *seedFlag) Set(s string) error {
}

func usage() {
fmt.Fprintf(os.Stderr, `
fmt.Fprint(os.Stderr, `
Garble obfuscates Go code by wrapping the Go toolchain.
garble [garble flags] command [go flags] [go arguments]
Expand All @@ -139,7 +139,7 @@ garble accepts the following flags before a command:
`[1:])
flagSet.PrintDefaults()
fmt.Fprintf(os.Stderr, `
fmt.Fprint(os.Stderr, `
For more information, see https://github.com/burrowers/garble.
`[1:])
Expand Down
2 changes: 1 addition & 1 deletion reverse.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
func commandReverse(args []string) error {
flags, args := splitFlagsFromArgs(args)
if hasHelpFlag(flags) || len(args) == 0 {
fmt.Fprintf(os.Stderr, `
fmt.Fprint(os.Stderr, `
usage: garble [garble flags] reverse [build flags] package [files]
For example, after building an obfuscated program as follows:
Expand Down

0 comments on commit 48dd226

Please sign in to comment.