mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-01 22:42:45 +02:00
all: Fix typos
This commit is contained in:
@@ -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")
|
||||
|
@@ -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...)
|
||||
}
|
||||
|
@@ -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")
|
||||
|
Reference in New Issue
Block a user