Skip to content

Commit 664598b

Browse files
committed
fix various typos in comments
1 parent fb7b65b commit 664598b

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

colorize_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
// setColorization will mutate the values of this logger
11-
// to approperately configure colorization options. It provides
11+
// to appropriately configure colorization options. It provides
1212
// a wrapper to the output stream on Windows systems.
1313
func (l *intLogger) setColorization(opts *LoggerOptions) {
1414
switch opts.Color {

colorize_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
// setColorization will mutate the values of this logger
14-
// to approperately configure colorization options. It provides
14+
// to appropriately configure colorization options. It provides
1515
// a wrapper to the output stream on Windows systems.
1616
func (l *intLogger) setColorization(opts *LoggerOptions) {
1717
switch opts.Color {

global.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ var (
2020
)
2121

2222
// Default returns a globally held logger. This can be a good starting
23-
// place, and then you can use .With() and .Name() to create sub-loggers
23+
// place, and then you can use .With() and .Named() to create sub-loggers
2424
// to be used in more specific contexts.
2525
// The value of the Default logger can be set via SetDefault() or by
2626
// changing the options in DefaultOptions.
2727
//
2828
// This method is goroutine safe, returning a global from memory, but
29-
// cause should be used if SetDefault() is called it random times
29+
// care should be used if SetDefault() is called it random times
3030
// in the program as that may result in race conditions and an unexpected
3131
// Logger being returned.
3232
func Default() Logger {

intlogger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func newLogger(opts *LoggerOptions) *intLogger {
160160
}
161161

162162
// offsetIntLogger is the stack frame offset in the call stack for the caller to
163-
// one of the Warn,Info,Log,etc methods.
163+
// one of the Warn, Info, Log, etc methods.
164164
const offsetIntLogger = 3
165165

166166
// Log a message and a set of key/value pairs if the given level is at

logger.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
var (
12-
//DefaultOutput is used as the default log output.
12+
// DefaultOutput is used as the default log output.
1313
DefaultOutput io.Writer = os.Stderr
1414

1515
// DefaultLevel is used as the default log level.
@@ -28,7 +28,7 @@ const (
2828
// of actions in code, such as function enters/exits, etc.
2929
Trace Level = 1
3030

31-
// Debug information for programmer lowlevel analysis.
31+
// Debug information for programmer low-level analysis.
3232
Debug Level = 2
3333

3434
// Info information about steady state operations.
@@ -44,13 +44,13 @@ const (
4444
Off Level = 6
4545
)
4646

47-
// Format is a simple convience type for when formatting is required. When
47+
// Format is a simple convenience type for when formatting is required. When
4848
// processing a value of this type, the logger automatically treats the first
4949
// argument as a Printf formatting string and passes the rest as the values
5050
// to be formatted. For example: L.Info(Fmt{"%d beans/day", beans}).
5151
type Format []interface{}
5252

53-
// Fmt returns a Format type. This is a convience function for creating a Format
53+
// Fmt returns a Format type. This is a convenience function for creating a Format
5454
// type.
5555
func Fmt(str string, args ...interface{}) Format {
5656
return append(Format{str}, args...)
@@ -134,7 +134,7 @@ func (l Level) String() string {
134134
}
135135
}
136136

137-
// Logger describes the interface that must be implemeted by all loggers.
137+
// Logger describes the interface that must be implemented by all loggers.
138138
type Logger interface {
139139
// Args are alternating key, val pairs
140140
// keys must be strings
@@ -236,7 +236,7 @@ type LoggerOptions struct {
236236
// Name of the subsystem to prefix logs with
237237
Name string
238238

239-
// The threshold for the logger. Anything less severe is supressed
239+
// The threshold for the logger. Anything less severe is suppressed
240240
Level Level
241241

242242
// Where to write the logs to. Defaults to os.Stderr if nil
@@ -267,7 +267,7 @@ type LoggerOptions struct {
267267
// because setting TimeFormat to empty assumes the default format.
268268
DisableTime bool
269269

270-
// Color the output. On Windows, colored logs are only avaiable for io.Writers that
270+
// Color the output. On Windows, colored logs are only available for io.Writers that
271271
// are concretely instances of *os.File.
272272
Color ColorOption
273273

@@ -282,8 +282,8 @@ type LoggerOptions struct {
282282

283283
// IndependentLevels causes subloggers to be created with an independent
284284
// copy of this logger's level. This means that using SetLevel on this
285-
// logger will not effect any subloggers, and SetLevel on any subloggers
286-
// will not effect the parent or sibling loggers.
285+
// logger will not affect any subloggers, and SetLevel on any subloggers
286+
// will not affect the parent or sibling loggers.
287287
IndependentLevels bool
288288
}
289289

0 commit comments

Comments
 (0)