misc: Remove duplicate words in comments

Closes #14936
Closes #14950
Closes #14965
This commit is contained in:
Joe Mooring
2026-05-29 07:45:08 -07:00
committed by Bjørn Erik Pedersen
parent 28d882ab70
commit 45c00b7c16
8 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
package hiter
// Common iterator functions.
// Some of these are are based on this discsussion: https://github.com/golang/go/issues/61898
// Some of these are based on this discsussion: https://github.com/golang/go/issues/61898
import "iter"
+1 -1
View File
@@ -19,7 +19,7 @@ import (
"github.com/gohugoio/hugo/docshelper"
)
// This is is just some helpers used to create some JSON used in the Hugo docs.
// This is just a helper used to create some JSON used in the Hugo docs.
func init() {
docsProvider := func() docshelper.DocProvider {
cfg := config.New()
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"github.com/gohugoio/hugo/docshelper"
)
// This is is just some helpers used to create some JSON used in the Hugo docs.
// This is just a helper used to create some JSON used in the Hugo docs.
func init() {
docsProvider := func() docshelper.DocProvider {
var chromaLexers []any
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/gohugoio/hugo/docshelper"
)
// This is is just some helpers used to create some JSON used in the Hugo docs.
// This is just a helper used to create some JSON used in the Hugo docs.
func init() {
docsProvider := func() docshelper.DocProvider {
return docshelper.DocProvider{
+1 -1
View File
@@ -33,7 +33,7 @@ var (
rightDelimScNoMarkup = []byte(">}}")
leftDelimScWithMarkup = []byte("{{%")
rightDelimScWithMarkup = []byte("%}}")
leftComment = []byte("/*") // comments in this context us used to to mark shortcodes as "not really a shortcode"
leftComment = []byte("/*") // comments in this context are used to mark shortcodes as "not really a shortcode"
rightComment = []byte("*/")
)
+1 -1
View File
@@ -331,7 +331,7 @@ type SearchOpts struct {
// The indices to search in.
Indices []string
// Fragments holds a a list of special keywords that is used
// Fragments holds a list of special keywords that is used
// for indices configured as type "fragments".
// This will match the fragment identifiers of the documents.
Fragments []string
+2 -2
View File
@@ -395,7 +395,7 @@ func (p *PageConfigEarly) CompileForPagesFromDataPre(basePath string, logger log
// Note that NormalizePathStringBasic will make sure that we don't preserve the unnormalized path.
// We do that when we create pages from the file system; mostly for backward compatibility,
// but also because people tend to use use the filename to name their resources (with spaces and all),
// but also because people tend to use the filename to name their resources (with spaces and all),
// and this isn't relevant when creating resources from an API where it's easy to add textual meta data.
p.Path = paths.NormalizePathStringBasic(p.Path)
@@ -499,7 +499,7 @@ func (rc *ResourceConfig) Compile(basePath string, fim hugofs.FileMetaInfo, conf
// Note that NormalizePathStringBasic will make sure that we don't preserve the unnormalized path.
// We do that when we create resources from the file system; mostly for backward compatibility,
// but also because people tend to use use the filename to name their resources (with spaces and all),
// but also because people tend to use the filename to name their resources (with spaces and all),
// and this isn't relevant when creating resources from an API where it's easy to add textual meta data.
rc.Path = paths.NormalizePathStringBasic(path.Join(basePath, rc.Path))
rc.PathInfo = conf.PathParser().Parse(files.ComponentFolderContent, rc.Path)
+1 -1
View File
@@ -58,7 +58,7 @@ func NewEmpty() Chain {
}
// Implements contentTransformer
// Content is read from the from-buffer and rewritten to to the to-buffer.
// Content is read from the from-buffer and rewritten to the to-buffer.
type fromToBuffer struct {
from *bytes.Buffer
to *bytes.Buffer