Skip to content

Commit

Permalink
Fix a few style issues pointed out by golint.
Browse files Browse the repository at this point in the history
  • Loading branch information
davecgh committed Nov 15, 2013
1 parent f13f098 commit f0ba95e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spew/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ type ConfigState struct {

// Config is the active configuration of the top-level functions.
// The configuration can be changed by modifying the contents of spew.Config.
var Config ConfigState = ConfigState{Indent: " "}
var Config = ConfigState{Indent: " "}

// Errorf is a wrapper for fmt.Errorf that treats each argument as if it were
// passed with a Formatter interface returned by c.NewFormatter. It returns
Expand Down
6 changes: 3 additions & 3 deletions spew/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ func (s *valuesSorter) Less(i, j int) bool {
return s.values[i].String() < s.values[j].String()
}

// Generic sort function for native types: int, uint, bool, string and uintptr.
// Other inputs are sort according to their Value.String() value to ensure
// display stability.
// SortValues is a generic sort function for native types: int, uint, bool,
// string and uintptr. Other inputs are sorted according to their
// Value.String() value to ensure display stability.
func SortValues(values []reflect.Value) {
if len(values) == 0 {
return
Expand Down
2 changes: 0 additions & 2 deletions spew/spew.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ func Println(a ...interface{}) (n int, err error) {
return fmt.Println(convertArgs(a)...)
}

// Sprintf formats according to a format specifier and returns the resulting string.
//
// Sprint is a wrapper for fmt.Sprint that treats each argument as if it were
// passed with a default Formatter interface returned by NewFormatter. It
// returns the resulting string. See NewFormatter for formatting details.
Expand Down

0 comments on commit f0ba95e

Please sign in to comment.