diff --git a/loader/loader.go b/loader/loader.go index eb668db3be..fb50218018 100644 --- a/loader/loader.go +++ b/loader/loader.go @@ -245,7 +245,7 @@ func allRec(path string, filter Filter, errors *loaderErrors, loaded *Result, de } // If we are recursing on directories then content must be loaded under path - // speciifed by directory hierarchy. + // specified by directory hierarchy. if depth > 0 { loaded = loaded.withParent(info.Name()) } diff --git a/runtime/logging.go b/runtime/logging.go index d2b3752093..d92571c0f6 100644 --- a/runtime/logging.go +++ b/runtime/logging.go @@ -197,7 +197,7 @@ func readBody(r io.ReadCloser) ([]byte, io.ReadCloser, error) { return buf.Bytes(), ioutil.NopCloser(bytes.NewReader(buf.Bytes())), nil } -// prettyFormatteer implements the Logrus Formatter interface +// prettyFormatter implements the Logrus Formatter interface // and provides a more simple, but easier to read, text formatter // option than the default logrus.TextFormatter. type prettyFormatter struct { diff --git a/runtime/runtime.go b/runtime/runtime.go index 1d6092124c..1222ddc68f 100644 --- a/runtime/runtime.go +++ b/runtime/runtime.go @@ -127,7 +127,7 @@ type Params struct { // conform to the syntax defined in the `strval` package ConfigOverrides []string - // ConfigOverrideFiles Similar to `ConfigOverrides` execept they are in the + // ConfigOverrideFiles Similar to `ConfigOverrides` except they are in the // form of `key=path/to/file`where the file contains the value to be used. ConfigOverrideFiles []string diff --git a/topdown/builtins.go b/topdown/builtins.go index 8cca121913..e6807b7ec2 100644 --- a/topdown/builtins.go +++ b/topdown/builtins.go @@ -66,7 +66,7 @@ type ( // BuiltinFunc defines an interface for implementing built-in functions. // The built-in function is called with the plugged operands from the call // (including the output operands.) The implementation should evaluate the - // operands and invoke the iteraror for each successful/defined output + // operands and invoke the iterator for each successful/defined output // value. BuiltinFunc func(bctx BuiltinContext, operands []*ast.Term, iter func(*ast.Term) error) error ) diff --git a/util/backoff.go b/util/backoff.go index 89eccbc92f..9e3a372573 100644 --- a/util/backoff.go +++ b/util/backoff.go @@ -9,13 +9,13 @@ import ( "time" ) -// DefaultBackoff returns a delay with an expontential backoff based on the +// DefaultBackoff returns a delay with an exponential backoff based on the // number of retries. func DefaultBackoff(base, max float64, retries int) time.Duration { return Backoff(base, max, .2, 1.6, retries) } -// Backoff returns a delay with an expontential backoff based on the number of +// Backoff returns a delay with an exponential backoff based on the number of // retries. Same algorithm used in gRPC. func Backoff(base, max, jitter, factor float64, retries int) time.Duration { if retries == 0 {