diff --git a/README.md b/README.md index 2e285c2..103c9e5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# lumberjack [![GoDoc](https://godoc.org/github.com/natefinch/lumberjack?status.png)](https://godoc.org/github.com/natefinch/lumberjack) +# lumberjack [![GoDoc](https://godoc.org/github.com/natefinch/lumberjack?status.png)](https://godoc.org/github.com/natefinch/lumberjack) [![Build Status](https://travis-ci.org/natefinch/lumberjack.png)](https://travis-ci.org/natefinch/lumberjack) @@ -55,7 +55,7 @@ const ( ``` go func IsWriteTooLong(err error) bool ``` -IsWriteTooLong returns whether the given error reports a write to Logger that +IsWriteTooLong reports whether the given error indicates a Write with data that exceeds the Logger's MaxSize. diff --git a/lumberjack.go b/lumberjack.go index 30643f7..531ef08 100644 --- a/lumberjack.go +++ b/lumberjack.go @@ -358,8 +358,8 @@ func (b byFormatTime) time(i int) time.Time { return t } -// IsWriteTooLong returns whether the given error reports a write to Logger that -// exceeds the Logger's MaxSize. +// IsWriteTooLong reports whether the given error indicates a Write with data +// that exceeds the Logger's MaxSize. func IsWriteTooLong(err error) bool { if err == nil { return false