diff options
author | Christian Oliff <christianoliff@pm.me> | 2024-02-11 20:51:33 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 13:51:33 +0200 |
commit | 0672b5c76605132475ff18b8c526f1cf0d6affc3 (patch) | |
tree | 2af2eb9d8eb1458ed6c39b58328c7d21d0c522d2 /tpl | |
parent | e309f82efe1885aa5b8030be48c36ba4432ddd7b (diff) |
all: Fix typos
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/collections/collections.go | 2 | ||||
-rw-r--r-- | tpl/fmt/fmt.go | 6 | ||||
-rw-r--r-- | tpl/internal/resourcehelpers/helpers.go | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tpl/collections/collections.go b/tpl/collections/collections.go index 61fd138e9..2107cf5a0 100644 --- a/tpl/collections/collections.go +++ b/tpl/collections/collections.go @@ -572,7 +572,7 @@ func (ns *Namespace) Seq(args ...any) ([]int, error) { return seq, nil } -// Shuffle returns list l in a randomised order. +// Shuffle returns list l in a randomized order. func (ns *Namespace) Shuffle(l any) (any, error) { if l == nil { return nil, errors.New("both count and seq must be provided") diff --git a/tpl/fmt/fmt.go b/tpl/fmt/fmt.go index 04dbd339c..e9c18360a 100644 --- a/tpl/fmt/fmt.go +++ b/tpl/fmt/fmt.go @@ -47,7 +47,7 @@ func (ns *Namespace) Print(args ...any) string { return _fmt.Sprint(args...) } -// Printf returns string representation of args formatted with the layouut in format. +// Printf returns string representation of args formatted with the layout in format. func (ns *Namespace) Printf(format string, args ...any) string { return _fmt.Sprintf(format, args...) } @@ -87,12 +87,12 @@ func (ns *Namespace) Warnidf(id, format string, args ...any) string { return "" } -// Warnmf is epxermimental and subject to change at any time. +// Warnmf is experimental and subject to change at any time. func (ns *Namespace) Warnmf(m any, format string, args ...any) string { return ns.logmf(ns.logger.Warn(), m, format, args...) } -// Errormf is epxermimental and subject to change at any time. +// Errormf is experimental and subject to change at any time. func (ns *Namespace) Errormf(m any, format string, args ...any) string { return ns.logmf(ns.logger.Error(), m, format, args...) } diff --git a/tpl/internal/resourcehelpers/helpers.go b/tpl/internal/resourcehelpers/helpers.go index 2d50c59a4..a777c8c3b 100644 --- a/tpl/internal/resourcehelpers/helpers.go +++ b/tpl/internal/resourcehelpers/helpers.go @@ -38,7 +38,7 @@ func ResolveIfFirstArgIsString(args []any) (resources.ResourceTransformer, strin return v2, v1, ok2 } -// This roundabout way of doing it is needed to get both pipeline behaviour and options as arguments. +// This roundabout way of doing it is needed to get both pipeline behavior and options as arguments. func ResolveArgs(args []any) (resources.ResourceTransformer, map[string]any, error) { if len(args) == 0 { return nil, nil, errors.New("no Resource provided in transformation") |