all: Fix typos

This commit is contained in:
Christian Oliff
2024-02-11 20:51:33 +09:00
committed by GitHub
parent e309f82efe
commit 0672b5c766
11 changed files with 15 additions and 15 deletions

View File

@@ -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")

View File

@@ -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...)
}

View File

@@ -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")