From 54e619667e0064c2209ae6c65573375def3d0caa Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Wed, 6 Mar 2019 03:14:38 +0000 Subject: [PATCH] Fix function comments based on best practices from Effective Go Signed-off-by: CodeLingo Bot --- context.go | 2 +- loggocolor/writer.go | 2 +- writer.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/context.go b/context.go index 155454f..51d5790 100644 --- a/context.go +++ b/context.go @@ -25,7 +25,7 @@ type Context struct { writeMutex sync.Mutex } -// NewLoggers returns a new Context with no writers set. +// NewContext returns a new Context with no writers set. // If the root level is UNSPECIFIED, WARNING is used. func NewContext(rootLevel Level) *Context { if rootLevel < TRACE || rootLevel > CRITICAL { diff --git a/loggocolor/writer.go b/loggocolor/writer.go index 2a262ca..98d314e 100644 --- a/loggocolor/writer.go +++ b/loggocolor/writer.go @@ -30,7 +30,7 @@ type colorWriter struct { writer *ansiterm.Writer } -// NewColorWriter will write out colored severity levels if the writer is +// NewWriter will write out colored severity levels if the writer is // outputting to a terminal. func NewWriter(writer io.Writer) loggo.Writer { return &colorWriter{ansiterm.NewWriter(writer)} diff --git a/writer.go b/writer.go index d6b9c23..16715d5 100644 --- a/writer.go +++ b/writer.go @@ -23,7 +23,7 @@ type Writer interface { Write(entry Entry) } -// NewMinLevelWriter returns a Writer that will only pass on the Write calls +// NewMinimumLevelWriter returns a Writer that will only pass on the Write calls // to the provided writer if the log level is at or above the specified // minimum level. func NewMinimumLevelWriter(writer Writer, minLevel Level) Writer {