summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/collections/append.go2
-rw-r--r--common/loggers/loggers.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/collections/append.go b/common/collections/append.go
index 617d6258a..b9a9419cb 100644
--- a/common/collections/append.go
+++ b/common/collections/append.go
@@ -19,7 +19,7 @@ import (
)
// Append appends from to a slice to and returns the resulting slice.
-// If lenght of from is one and the only element is a slice of same type as to,
+// If length of from is one and the only element is a slice of same type as to,
// it will be appended.
func Append(to interface{}, from ...interface{}) (interface{}, error) {
tov, toIsNil := indirect(reflect.ValueOf(to))
diff --git a/common/loggers/loggers.go b/common/loggers/loggers.go
index 9d0f4f629..e711de468 100644
--- a/common/loggers/loggers.go
+++ b/common/loggers/loggers.go
@@ -115,7 +115,7 @@ func (a labelColorizer) Write(p []byte) (n int, err error) {
}
-// InitGlobalLogger initalizes the global logger, used in some rare cases.
+// InitGlobalLogger initializes the global logger, used in some rare cases.
func InitGlobalLogger(stdoutThreshold, logThreshold jww.Threshold, outHandle, logHandle io.Writer) {
outHandle, logHandle = getLogWriters(outHandle, logHandle)