Skip to content

Commit

Permalink
Fixes variadic parameter fail. #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariano Gappa committed Feb 21, 2017
1 parent a86decb commit 538ac2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
func usage(error string, args ...interface{}) {
if len(error) > 0 {
if len(args) > 0 {
fmt.Println(fmt.Sprintf(error, args))
fmt.Printf(fmt.Sprintf(error, args...))
} else {
fmt.Println(error)
}
Expand Down

0 comments on commit 538ac2a

Please sign in to comment.