Skip to content

Commit

Permalink
Fix typos and remove an unnecessary conditional (uber-go#519)
Browse files Browse the repository at this point in the history
Fix two misspellings in the documentation and remove an unnecessary conditional.
  • Loading branch information
disiqueira authored and akshayjshah committed Oct 30, 2017
1 parent fdad3eb commit 1d2dcc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion field.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func Object(key string, val zapcore.ObjectMarshaler) zapcore.Field {
// necessary.
//
// Since byte/uint8 and rune/int32 are aliases, Any can't differentiate between
// them. To minimize suprise, []byte values are treated as binary blobs, byte
// them. To minimize surprises, []byte values are treated as binary blobs, byte
// values are treated as uint8, and runes are always treated as integers.
func Any(key string, value interface{}) zapcore.Field {
switch val := value.(type) {
Expand Down
5 changes: 1 addition & 4 deletions internal/readme/readme.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ func do() error {
if err != nil {
return err
}
if err := t.Execute(os.Stdout, tmplData); err != nil {
return err
}
return nil
return t.Execute(os.Stdout, tmplData)
}

func getTmplData() (*tmplData, error) {
Expand Down
2 changes: 1 addition & 1 deletion level.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func NewAtomicLevel() AtomicLevel {
}
}

// NewAtomicLevelAt is a convienence function that creates an AtomicLevel
// NewAtomicLevelAt is a convenience function that creates an AtomicLevel
// and then calls SetLevel with the given level.
func NewAtomicLevelAt(l zapcore.Level) AtomicLevel {
a := NewAtomicLevel()
Expand Down

0 comments on commit 1d2dcc9

Please sign in to comment.