More spelling corrections
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 13 Nov 2018 17:28:40 +0000 (18:28 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 13 Nov 2018 17:28:40 +0000 (18:28 +0100)
cache/filecache/filecache.go
common/collections/append.go
common/loggers/loggers.go
parser/metadecoders/decoder.go

index e299258d7dde6dcd5db79032b816a93f22d9acab..4232c791a6219db12328eea2e66f57fb41663e53 100644 (file)
@@ -69,7 +69,7 @@ var defaultCacheConfigs = map[string]cacheConfig{
 type cachesConfig map[string]cacheConfig
 
 type cacheConfig struct {
-       // Maxe age of ache entries in this cache. Any items older than this will
+       // Max age of cache entries in this cache. Any items older than this will
        // be removed and not returned from the cache.
        // -1 means forever, 0 means cache is disabled.
        MaxAge int
index 617d6258a1ab986d7a2c6751cc1cadd09a2e9324..b9a9419cb625ca5bcf56958d96c062192e00602e 100644 (file)
@@ -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))
index 9d0f4f62906065bc9bf0f14a612896c48c122977..e711de46898adf576e4ec7acedf00b6f58baac1c 100644 (file)
@@ -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)
 
index 47d8af91208cc8c4bbcdd619e5843954340d2cc4..e03a6aacd0c53d672d093a17ed4ced1421e1fb4f 100644 (file)
@@ -119,7 +119,7 @@ func toFileError(f Format, err error) error {
 
 // stringifyMapKeys recurses into in and changes all instances of
 // map[interface{}]interface{} to map[string]interface{}. This is useful to
-// work around the impedence mismatch between JSON and YAML unmarshaling that's
+// work around the impedance mismatch between JSON and YAML unmarshaling that's
 // described here: https://github.com/go-yaml/yaml/issues/139
 //
 // Inspired by https://github.com/stripe/stripe-mock, MIT licensed