summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEitan Adler <eitan@eitanadler.com>2024-04-11 00:31:33 -0700
committerGitHub <noreply@github.com>2024-04-11 09:31:33 +0200
commitbf0b14036471db89c90e21c31cbf2f732ca40ab9 (patch)
treee811b341cc3344d856dfd33ee41888ae0f28c6e4
parente9b8bec433238df4ae081528bb347dec7f029fd4 (diff)
all: Fix duplicate words in comments
-rw-r--r--cache/dynacache/dynacache.go2
-rw-r--r--docs/data/docs.yaml2
-rw-r--r--hugolib/content_map_page.go2
-rw-r--r--markup/internal/attributes/attributes.go2
-rw-r--r--tpl/urls/urls.go2
5 files changed, 5 insertions, 5 deletions
diff --git a/cache/dynacache/dynacache.go b/cache/dynacache/dynacache.go
index fed4d120e..eab251e5d 100644
--- a/cache/dynacache/dynacache.go
+++ b/cache/dynacache/dynacache.go
@@ -340,7 +340,7 @@ func GetOrCreatePartition[K comparable, V any](c *Cache, name string, opts Optio
return p.(*Partition[K, V])
}
- // At this point, we don't know the the number of partitions or their configuration, but
+ // At this point, we don't know the number of partitions or their configuration, but
// this will be re-adjusted later.
const numberOfPartitionsEstimate = 10
maxSize := opts.CalculateMaxSize(c.opts.MaxSize / numberOfPartitionsEstimate)
diff --git a/docs/data/docs.yaml b/docs/data/docs.yaml
index b522ffbef..82862e042 100644
--- a/docs/data/docs.yaml
+++ b/docs/data/docs.yaml
@@ -4581,5 +4581,5 @@ tpl:
- urlize
Args:
- s
- Description: URLize returns the the strings s formatted as an URL.
+ Description: URLize returns the strings s formatted as an URL.
Examples: []
diff --git a/hugolib/content_map_page.go b/hugolib/content_map_page.go
index 8682d5d4a..336fe197c 100644
--- a/hugolib/content_map_page.go
+++ b/hugolib/content_map_page.go
@@ -1092,7 +1092,7 @@ func (h *HugoSites) resolveAndClearStateForIdentities(
}
}
- // Drain the the cache eviction stack.
+ // Drain the cache eviction stack.
evicted := h.Deps.MemCache.DrainEvictedIdentities()
if len(evicted) < 200 {
changes = append(changes, evicted...)
diff --git a/markup/internal/attributes/attributes.go b/markup/internal/attributes/attributes.go
index 15bed7039..9c147f766 100644
--- a/markup/internal/attributes/attributes.go
+++ b/markup/internal/attributes/attributes.go
@@ -136,7 +136,7 @@ type AttributesHolder struct {
// Attributes considered to be an option (code blocks)
options []Attribute
- // What we send to the the render hooks.
+ // What we send to the render hooks.
attributesMapInit sync.Once
attributesMap map[string]any
optionsMapInit sync.Once
diff --git a/tpl/urls/urls.go b/tpl/urls/urls.go
index b7bfa22b9..8bd7514ec 100644
--- a/tpl/urls/urls.go
+++ b/tpl/urls/urls.go
@@ -70,7 +70,7 @@ func (ns *Namespace) RelURL(s any) (string, error) {
return ns.deps.PathSpec.RelURL(ss, false), nil
}
-// URLize returns the the strings s formatted as an URL.
+// URLize returns the strings s formatted as an URL.
func (ns *Namespace) URLize(s any) (string, error) {
ss, err := cast.ToStringE(s)
if err != nil {