diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-08-08 10:54:35 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-08-08 10:54:35 +0200 |
commit | e2f8664ef4278e14ce1e21376804321fa013f570 (patch) | |
tree | ecd849c91148e4f0564f9357d62dd8104c17d5d5 | |
parent | 46ac7453743f0bd889d0be3505bde2521f9f0336 (diff) |
hugolib: More spelling
-rw-r--r-- | hugolib/handler_meta.go | 8 | ||||
-rw-r--r-- | hugolib/multilingual.go | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/hugolib/handler_meta.go b/hugolib/handler_meta.go index 4d46e3560..ae68ed5c7 100644 --- a/hugolib/handler_meta.go +++ b/hugolib/handler_meta.go @@ -37,7 +37,7 @@ type MetaHandler interface { // HandledResults is a channel for HandledResult. type HandleResults chan<- HandledResult -// NewMetaHandler creates a MetaHandle for a given extention. +// NewMetaHandler creates a MetaHandle for a given extensions. func NewMetaHandler(in string) *MetaHandle { x := &MetaHandle{ext: in} x.Handler() @@ -60,7 +60,7 @@ func (mh *MetaHandle) Read(f *source.File, s *Site, results HandleResults) { results <- HandledResult{err: errors.New("No handler found"), file: f} } -// Convert handles the convertion of files and pages. +// Convert handles the conversion of files and pages. func (mh *MetaHandle) Convert(i interface{}, s *Site, results HandleResults) { h := mh.Handler() @@ -84,7 +84,7 @@ func (mh *MetaHandle) Convert(i interface{}, s *Site, results HandleResults) { } } -// Handler finds the registered handler for the used extention. +// Handler finds the registered handler for the used extensions. func (mh *MetaHandle) Handler() Handler { if mh.handler == nil { mh.handler = FindHandler(mh.ext) @@ -107,7 +107,7 @@ func FindHandler(ext string) Handler { return nil } -// HandlerMatch checks if the given extention matches. +// HandlerMatch checks if the given extensions matches. func HandlerMatch(h Handler, ext string) bool { for _, x := range h.Extensions() { if ext == x { diff --git a/hugolib/multilingual.go b/hugolib/multilingual.go index 953f522bd..e0245fa2b 100644 --- a/hugolib/multilingual.go +++ b/hugolib/multilingual.go @@ -36,7 +36,7 @@ type Multilingual struct { langMapInit sync.Once } -// Language returns the Language assosiated with the given string. +// Language returns the Language associated with the given string. func (ml *Multilingual) Language(lang string) *helpers.Language { ml.langMapInit.Do(func() { ml.langMap = make(map[string]*helpers.Language) |