diff options
author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2023-02-18 22:47:35 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-03-02 16:32:32 +0100 |
commit | 36ce3a4a9d3933772085991c8636915ffd5cb3af (patch) | |
tree | e7eaf3e0ea689b227fe012eab7c0f16205d6cd8c /tpl | |
parent | 17e60b77e15664ba37f5c0b911cf70c36d496d80 (diff) |
Correct typos in Go comments
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/internal/go_templates/texttemplate/hugo_template.go | 4 | ||||
-rw-r--r-- | tpl/tplimpl/template.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tpl/internal/go_templates/texttemplate/hugo_template.go b/tpl/internal/go_templates/texttemplate/hugo_template.go index 23bc18e42..acfa2f166 100644 --- a/tpl/internal/go_templates/texttemplate/hugo_template.go +++ b/tpl/internal/go_templates/texttemplate/hugo_template.go @@ -72,7 +72,7 @@ const ( HasLockContextKey = hasLockContextKeyType("hasLock") ) -// Note: The context is currently not fully implemeted in Hugo. This is a work in progress. +// Note: The context is currently not fully implemented in Hugo. This is a work in progress. func (t *executer) ExecuteWithContext(ctx context.Context, p Preparer, wr io.Writer, data any) error { if ctx == nil { panic("nil context") @@ -123,7 +123,7 @@ func (t *Template) executeWithState(state *state, value reflect.Value) (err erro // can execute in parallel. type state struct { tmpl *Template - ctx context.Context // Added for Hugo. The orignal data context. + ctx context.Context // Added for Hugo. The original data context. prep Preparer // Added for Hugo. helper ExecHelper // Added for Hugo. wr io.Writer diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go index 70541e076..53e6b4902 100644 --- a/tpl/tplimpl/template.go +++ b/tpl/tplimpl/template.go @@ -774,8 +774,8 @@ func (t *templateHandler) loadEmbedded() error { name := strings.TrimPrefix(filepath.ToSlash(path), "embedded/templates/") templateName := name - // For the render hooks and the server templates it does not make sense to preseve the - // double _indternal double book-keeping, + // For the render hooks and the server templates it does not make sense to preserve the + // double _internal double book-keeping, // just add it if its now provided by the user. if !strings.Contains(path, "_default/_markup") && !strings.HasPrefix(name, "_server/") { templateName = internalPathPrefix + name |